lrama
Pure Ruby LALR parser generator
File Explorer
Download Latest Version (.zip)- codespell.yaml
- gh-pages.yml
- test.yaml
- dependabot.yml
- main.md
- parse.output
- parse.y
- parser.rb
- profiling.md
- Index.md
- lrama
- derivation.rb
- example.rb
- node.rb
- path.rb
- state_item.rb
- triple.rb
- destructor_code.rb
- initial_action_code.rb
- no_reference_code.rb
- printer_code.rb
- rule_action.rb
- resolver.rb
- resolver.rb
- rhs.rb
- rule.rb
- resolver.rb
- auxiliary.rb
- binding.rb
- code.rb
- counter.rb
- destructor.rb
- error_token.rb
- inline.rb
- parameterized.rb
- percent_code.rb
- precedence.rb
- printer.rb
- reference.rb
- rule.rb
- rule_builder.rb
- stdlib.y
- symbol.rb
- symbols.rb
- type.rb
- union.rb
- base.rb
- char.rb
- empty.rb
- ident.rb
- instantiate_rule.rb
- int.rb
- str.rb
- tag.rb
- token.rb
- user_code.rb
- grammar_file.rb
- location.rb
- token.rb
- call_stack.rb
- memory.rb
- conflicts.rb
- grammar.rb
- precedences.rb
- profile.rb
- rules.rb
- states.rb
- terms.rb
- goto.rb
- reduce.rb
- shift.rb
- action.rb
- inadequacy_annotation.rb
- item.rb
- reduce_reduce_conflict.rb
- resolved_conflict.rb
- shift_reduce_conflict.rb
- actions.rb
- closure.rb
- duration.rb
- only_explicit_rules.rb
- rules.rb
- state.rb
- conflicts.rb
- implicit_empty.rb
- name_conflicts.rb
- redefined_rules.rb
- required.rb
- useless_precedence.rb
- bitmap.rb
- command.rb
- context.rb
- counterexamples.rb
- diagram.rb
- digraph.rb
- erb.rb
- grammar.rb
- lexer.rb
- logger.rb
- option_parser.rb
- options.rb
- output.rb
- parser.rb
- reporter.rb
- state.rb
- states.rb
- tracer.rb
- version.rb
- warnings.rb
- lrama.rb
- calc.output
- calc.y
- diagram.html
- json.y
- parse.y
- sql.y
- derivation.rbs
- example.rbs
- node.rbs
- path.rbs
- state_item.rbs
- triple.rbs
- destructor_code.rbs
- initial_action_code.rbs
- no_reference_code.rbs
- printer_code.rbs
- rule_action.rbs
- resolver.rbs
- resolver.rbs
- rhs.rbs
- rule.rbs
- resolver.rbs
- auxiliary.rbs
- binding.rbs
- code.rbs
- counter.rbs
- destructor.rbs
- error_token.rbs
- percent_code.rbs
- precedence.rbs
- printer.rbs
- reference.rbs
- rule.rbs
- rule_builder.rbs
- symbol.rbs
- type.rbs
- union.rbs
- base.rbs
- char.rbs
- empty.rbs
- ident.rbs
- instantiate_rule.rbs
- int.rbs
- str.rbs
- tag.rbs
- token.rbs
- user_code.rbs
- grammar_file.rbs
- location.rbs
- token.rbs
- call_stack.rbs
- memory.rbs
- conflicts.rbs
- grammar.rbs
- precedences.rbs
- rules.rbs
- states.rbs
- terms.rbs
- goto.rbs
- reduce.rbs
- shift.rbs
- inadequacy_annotation.rbs
- item.rbs
- reduce_reduce_conflict.rbs
- resolved_conflict.rbs
- shift_reduce_conflict.rbs
- actions.rbs
- closure.rbs
- duration.rbs
- only_explicit_rules.rbs
- rules.rbs
- state.rbs
- conflicts.rbs
- implicit_empty.rbs
- name_conflicts.rbs
- redefined_rules.rbs
- required.rbs
- useless_precedence.rbs
- bitmap.rbs
- counterexamples.rbs
- diagram.rbs
- digraph.rbs
- erb.rbs
- grammar.rbs
- lexer.rbs
- logger.rbs
- option_parser.rbs
- options.rbs
- reporter.rbs
- state.rbs
- states.rbs
- tracer.rbs
- version.rbs
- warnings.rbs
- railroad_diagrams.rbs
- string_scanner.rbs
- basic.y
- basic.y
- no_union.y
- no_union_with_type.y
- nullable.y
- precedence.y
- start.y
- unexpected_token.y
- basic.y
- basic.y
- parameterized_args_include_inline.y
- resolve_index.y
- resolve_index_at.y
- resolve_index_reverse.y
- rhs_include_parameterized.y
- with_parameters.y
- after_shift.l
- after_shift.y
- calculator.l
- calculator.y
- contains_at_reference.l
- contains_at_reference.y
- destructors.l
- destructors.y
- error_recovery.l
- error_recovery.y
- ielr.l
- ielr.y
- line_number.l
- line_number.y
- named_references.l
- named_references.y
- no_union.l
- no_union.y
- parameterized.l
- parameterized.y
- params.l
- params.y
- printers.l
- printers.y
- prologue_epilogue_optional.l
- prologue_epilogue_optional.y
- typed_midrule_actions.l
- typed_midrule_actions.y
- user_defined_parameterized.l
- user_defined_parameterized.y
- location.y
- invalid_argument_number.y
- invalid_rule_name.y
- delimited.y
- ioption.y
- list.y
- nonempty_list.y
- option.y
- option_between_rhs.y
- option_with_tag.y
- preceded.y
- separated_list.y
- separated_nonempty_list.y
- terminated.y
- basic.y
- multi_arguments.y
- nested_rules.y
- nested_rules_in_args.y
- nested_rules_in_rhs.y
- nested_rules_in_rhs_with_named_ref.y
- nested_rules_multi_arguments.y
- nested_rules_symbols.y
- nested_rules_with_tag.y
- recursive.y
- with_action.y
- with_action_and_named_references.y
- with_tag.y
- includes_relation.y
- precedence_unused.y
- precedence_used.y
- precedence_without_prec.y
- reads_relation.y
- node_spec.rb
- resolver_spec.rb
- code_spec.rb
- rule_builder_spec.rb
- symbol_spec.rb
- user_code_spec.rb
- location_spec.rb
- states_spec.rb
- actions_spec.rb
- closure_spec.rb
- only_explicit_rules_spec.rb
- rules_spec.rb
- state_spec.rb
- conflicts_spec.rb
- implicit_empty_spec.rb
- name_conflicts_spec.rb
- redefined_rules_spec.rb
- required_spec.rb
- useless_precedence_spec.rb
- bitmap_spec.rb
- command_spec.rb
- context_spec.rb
- counterexamples_spec.rb
- diagram_spec.rb
- grammar_spec.rb
- integration_spec.rb
- lexer_spec.rb
- logger_spec.rb
- option_parser_spec.rb
- output_spec.rb
- parser_spec.rb
- states_spec.rb
- warnings_spec.rb
- spec_helper.rb
- _yacc.h
- yacc.c
- yacc.h
- diagram.html
- .codespellignore
- .gitattributes
- .gitignore
- .rdoc_options
- .rspec
- Gemfile
- LEGAL.md
- lrama.gemspec
- MIT
- NEWS.md
- parser.y
- Rakefile
- rbs_collection.lock.yaml
- rbs_collection.yaml
- README.md
- Steepfile
# Installation Guide
1. Get the code
git clone https://github.com/ruby/lrama
Downloads the entire project code from GitHub to your computer.
cd lrama
Moves into the project folder you just downloaded.
2. Ruby
Easy RecommendedPrerequisites
$ bundle install
Installs the Ruby libraries listed in the Gemfile.
$ bundle exec rake install
Type this command into your terminal and run it.
$ bundle exec lrama --version
Type this command into your terminal and run it.
$ bundle exec rake build:parser
Type this command into your terminal and run it.
$ bundle exec rspec
Type this command into your terminal and run it.
If bundle install finishes without errors, continue with the run command from the README (e.g. rails server).
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
