Object
# File racc/grammarfileparser.rb, line 173 def initialize(debug_flags = DebugFlags.new) @yydebug = debug_flags.parse end
# File racc/grammarfileparser.rb, line 177 def parse(src, filename = '-', lineno = 1) @filename = filename @lineno = lineno @scanner = GrammarFileScanner.new(src, @filename) @scanner.debug = @yydebug @grammar = Grammar.new @result = Result.new(@grammar) @embedded_action_seq = 0 yyparse @scanner, :yylex parse_user_code @result.grammar.init @result end