-
Notifications
You must be signed in to change notification settings - Fork 3
TUTO~3d: parser and demo time
famished-tiger edited this page Feb 20, 2022
·
2 revisions
As for the previous iteration, we'll re-use the parser code from iteration 1. This is good news since, we don't need to write more code. Therefore we can jump directly to the demo...
If one goes to the iter_3
folder and runs the following command line:
ruby toml_demo.rb
The script emits the parse tree for the complete example file found on the official TOML page.
In other words, we succeeded one objective of this tutorial.
Remains the capability to convert the parse results into a Ruby Hash, that will be the aim of the iteration 4.
The next iteration will introduce the creation of AST Abstract Syntax Tree and other Rley's advanced topics.