mirror of
https://github.com/cwbaker/lalr.git
synced 2026-09-26 16:33:18 +03:00
Use pointer to generated parse tables in README.md usage
This commit is contained in:
parent
5a4574ec35
commit
88e666b5ae
1 changed files with 2 additions and 2 deletions
|
|
@ -161,8 +161,8 @@ Include `<lalr/Parser.hpp>`. Lalr's parser and lexer source code are header onl
|
|||
**2. Create `Parser`**
|
||||
|
||||
~~~c++
|
||||
extern lalr::ParserStateMachine xml_parser_state_machine;
|
||||
Parser<const char*, XmlUserData> parser( &xml_parser_state_machine );
|
||||
extern lalr::ParserStateMachine* xml_parser_state_machine;
|
||||
Parser<const char*, XmlUserData> parser( xml_parser_state_machine );
|
||||
~~~
|
||||
|
||||
Reference a parse table as an `extern` variable for offline generated parse tables. See [lalr_calculator_example.cpp](#lalr_calculator_example.cpp) for an example of compiling a grammar to parse tables at runtime.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue