mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00

* keywords: rb_reserved_word() should be defined only in ruby core. * lex.c: sync with keywords. * ext/ripper/ripper.rb.in (parse): fix typo. * ext/ripper/lib/ripper.rb: sync with ripper.rb.in. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
53 lines
642 B
Ruby
53 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(str, *args).parse
|
|
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
|