Sha256: 6cb8a477bfd9e8233979e551c864f87a1b2fdc855a58294d644141b8499145d8
Contents?: true
Size: 461 Bytes
Versions: 35
Compression:
Stored size: 461 Bytes
Contents
# # yyerror/yyerrok/yyaccept test # class A rule target: a b c a: { yyerror raise ArgumentError, "yyerror failed" } | error b: { yyerrok } c: { yyaccept raise ArgumentError, "yyaccept failed" } end ---- inner def parse do_parse end def next_token [false, '$end'] end def on_error( *args ) $stderr.puts "on_error called: args=#{args.inspect}" end ---- footer A.new.parse
Version data entries
35 entries across 30 versions & 5 rubygems