README.rdoc in koi-reference-parser-0.0.2 vs README.rdoc in koi-reference-parser-0.0.3
- old
+ new
@@ -19,10 +19,11 @@
<AdditiveExpression "1 + 2">
<IntegerLiteral "1">
<AdditionOperator "+">
<IntegerLiteral "2">
+The AST is also available in a far more portable format based on nested hashes by calling the to_hash method on the root AST node.
=== Installation
This parser is normally installed as part of Koi's default toolchain. However if you would like to install it on it's own you can do so by installing the gem like so:
@@ -34,9 +35,12 @@
require 'koi-reference-parser'
include KoiReferenceParser
ast = Parser.parse( program_text )
+
+ # Get the AST as a portable nested hash
+ ast_hash = ast.to_hash
=== Author & Credits
Author:: {Aaron Gough}[mailto:aaron@aarongough.com]
\ No newline at end of file