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

Version Path
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/racc-1.5.2/test/assets/yyerr.y
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/racc-1.5.2/test/assets/yyerr.y
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/racc-1.5.2/test/assets/yyerr.y
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/racc-1.5.2/test/assets/yyerr.y
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/racc-1.5.2/test/assets/yyerr.y
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/racc-1.5.2/test/assets/yyerr.y
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/racc-1.5.2/test/assets/yyerr.y
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/racc-1.5.2/test/assets/yyerr.y
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/racc-1.5.2/test/assets/yyerr.y
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/racc-1.5.2/test/assets/yyerr.y
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/racc-1.5.2/test/assets/yyerr.y
racc-1.5.2-java test/assets/yyerr.y
racc-1.5.2 test/assets/yyerr.y
racc-1.5.1-java test/assets/yyerr.y
racc-1.5.1 test/assets/yyerr.y
racc-1.5.0-java test/assets/yyerr.y
racc-1.5.0 test/assets/yyerr.y
racc-1.4.16-java test/assets/yyerr.y
racc-1.4.16 test/assets/yyerr.y
racc-1.4.15-java test/assets/yyerr.y