diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-23 10:49:11 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-23 10:49:11 +0000 |
commit | 0c9d76889af8e00a946dbe8de33568fc87bdd983 (patch) | |
tree | 6b11b788338aa66e7357d013feb96082edb0a0cb /ext/ripper/ripper.rb.in | |
parent | bf189b88d34f23b1f4e7709fd6c9b947cd5073e7 (diff) |
* ext/ripper/Makefile.dev: removed.
* ext/ripper/ripper.rb.in: moved to lib/ripper/core.rb.in.
* ext/ripper/lib/ripper/core.rb: new file.
* ext/ripper/lib/ripper/core.rb.in: new file.
* ext/ripper/tools/generate-ripper_rb.rb: change comment.
* test/ripper/*.rb: on_scan removed.
* test/ripper/*.rb: event name changed: on__ -> on_.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper/ripper.rb.in')
-rw-r--r-- | ext/ripper/ripper.rb.in | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/ext/ripper/ripper.rb.in b/ext/ripper/ripper.rb.in deleted file mode 100644 index 295dd1e353..0000000000 --- a/ext/ripper/ripper.rb.in +++ /dev/null @@ -1,62 +0,0 @@ -# -# ripper.rb -# -# Copyright (C) 2003,2004 Minero Aoki -# - -require 'ripper.so' - -class Ripper - # Parses Ruby program read from _src_. - # _src_ must be a String or a IO or a object which has #gets method. - def Ripper.parse(src, filename = '(ripper)', lineno = 1) - new(src, filename, lineno).parse - end - - # This table contains name of parser events and its arity. - PARSER_EVENT_TABLE = { -#include ids1 - } - - # This array contains name of parser events. - PARSER_EVENTS = PARSER_EVENT_TABLE.keys - - # This table contains name of scanner events and its arity - # (arity is always 1 for all scanner events). - SCANNER_EVENT_TABLE = { -#include ids2 - } - - # This array contains name of scanner events. - SCANNER_EVENTS = SCANNER_EVENT_TABLE.keys - - # This table contains name of all ripper events. - EVENTS = PARSER_EVENTS + SCANNER_EVENTS - - ### ### - ### Event Handlers ### - ### ### - - private - - def warn(fmt, *args) - end - - def warning(fmt, *args) - end - - def compile_error(msg) - end - - # - # Parser Events - # -#include handlers1 - - # - # Lexer Events - # -#include handlers2 -end - -require 'ripper/tokenizer' |