lrama icon indicating copy to clipboard operation
lrama copied to clipboard

Pure Ruby LALR parser generator

Results 38 lrama issues
Sort by recently updated
recently updated
newest added

I'm trying to build an online yacc/lex (LALR(1)) grammar editor/tester to help develop/debug/document grammars the main repository is here https://github.com/mingodad/parsertl-playground and the online playground with several non trivial examples is...

Added lexer.rbs. Discussions: - `Type` and `Token` have type parameters named `SValue`. I expect them to work well in parser.rb. - They are invariant. I could not find a good...

follow up: https://github.com/ruby/lrama/pull/447 fix: https://github.com/ruby/lrama/issues/442

In the generated C file, we see `YY_INITIAL_VALUE (static YYSTYPE yyval_default;)`, but `clang` raises error `error: default initialization of an object of const type`. According to the C++ language specification,...

bug

This is a follow up of https://github.com/ruby/lrama/pull/443

I added a test case for “(1+2)” for error recovery. However, I am not sure if the test case is what it is supposed to be, so I would appreciate...

## How to reproduce 1. check out this branch: https://github.com/ydah/ruby/tree/use-user-defined-parameterizing-rule 2. run following commands ```sh $ ruby tool/id2token.rb parse.y > parse.tmp.y $ tool/lrama/exe/lrama --report=cex parse.tmp.y ``` ## Investigation Works fine...