Skip to content

Commit

Permalink
* bin/racc: -g option is now -t. -g option is obsolete and is an alia…
Browse files Browse the repository at this point in the history
…s of -t.

git-svn-id: file:///Users/aaron/Desktop/public/racc/trunk@2134 1b9489fe-b721-0410-924e-b54b9192deb8
  • Loading branch information
aamine committed Jun 18, 2006
1 parent 8a00beb commit b86a46c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Mon Jun 19 02:38:18 2006 Minero Aoki <[email protected]>

* bin/racc: -g option is now -t. -g option is obsolete and is an
alias of -t.

Mon Jun 19 02:35:59 2006 Minero Aoki <[email protected]>

* ext/racc/cparse/cparse.c: K&R -> ANSI C.
Expand Down
7 changes: 4 additions & 3 deletions bin/racc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# $Id$
#
# Copyright (c) 1999-2005 Minero Aoki
# Copyright (c) 1999-2006 Minero Aoki
#
# This program is free software.
# You can distribute/modify this program under the terms of
Expand Down Expand Up @@ -67,7 +67,8 @@ end
##### parse arg ------------------------------------------------

Racc_Options = <<EOS
o -g --debug - output parser for user level debugging
o -t --debug - output parser for user level debugging
x -g - - ditto (obsolete)
o -o --output-file <outfile> file name of output [<fname>.tab.rb]
o -e --executable <rubypath> insert #! line in output ('ruby' to default)
o -E --embedded - output file which don't need runtime
Expand Down Expand Up @@ -190,7 +191,7 @@ end

def set_flags__after_parse(racc, opt)
# overwrite source's
racc.debug_parser = opt['--debug']
racc.debug_parser = opt['--debug'] || opt['-g']
racc.convert_line = opt['--line-convert']
racc.omit_action = opt['--omit-actions'] unless opt['--omit-actions'] == nil
if opt['-D'] or $DEBUG
Expand Down

0 comments on commit b86a46c

Please sign in to comment.