BYACC/R (Berkeley Yacc for Ruby)
BYACC/R (Berkeley Yacc for Ruby)
Usage
byaccr -R [-c class_name] [-f file_name] [-s ruby_semantic_type]
[-i include_name] [-x extend_name] yacc_file
file_name: specify the output file which named file_name.rb.
class_name: specify the parser class (the default is 'Parser').
ruby_semantic_type: @yylval instantiated from 'ruby_semantic_type'.
include_name: specify the class which is included in the parser class.
extend_name: specify the super class of the parser class.
Links