mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
54 lines
642 B
Ruby
54 lines
642 B
Ruby
|
#
|
||
|
# This file is automatically generated from ripper.rb.in and parse.y.
|
||
|
# DO NOT MODIFY!!!!!!
|
||
|
#
|
||
|
|
||
|
#
|
||
|
# ripper.rb
|
||
|
#
|
||
|
# Copyright (C) 2003,2004 Minero Aoki
|
||
|
#
|
||
|
|
||
|
require 'ripper.so'
|
||
|
|
||
|
class Ripper
|
||
|
def Ripper.parse(str, *args)
|
||
|
new.parse(str, *args)
|
||
|
end
|
||
|
|
||
|
private
|
||
|
|
||
|
def warn(fmt, *args)
|
||
|
end
|
||
|
|
||
|
def warning(fmt, *args)
|
||
|
end
|
||
|
|
||
|
def compile_error(msg)
|
||
|
end
|
||
|
|
||
|
PARSER_EVENTS = [
|
||
|
#include ids1
|
||
|
]
|
||
|
|
||
|
SCANNER_EVENTS = [
|
||
|
#include ids2
|
||
|
]
|
||
|
LEXER_EVENTS = SCANNER_EVENTS
|
||
|
|
||
|
EVENTS = PARSER_EVENTS + SCANNER_EVENTS
|
||
|
|
||
|
#
|
||
|
# Parser Events
|
||
|
#
|
||
|
#include handlers1
|
||
|
|
||
|
#
|
||
|
# Lexer Events
|
||
|
#
|
||
|
|
||
|
def on__scan(event, token)
|
||
|
end
|
||
|
#include handlers2
|
||
|
end
|