Permalink
Browse files

Updated Readme to document the SyntaxNode.to_hash method.

  • Loading branch information...
1 parent aeda0ba commit ad201ac0d57de28d8a5d968f6a9d79bb630d4613 @aarongough committed Aug 31, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.rdoc
View
4 README.rdoc
@@ -21,6 +21,7 @@ And turns it into an {Abstract Syntax Tree (AST)}[http://en.wikipedia.org/wiki/A
<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
@@ -36,6 +37,9 @@ This parser is normally installed as part of Koi's default toolchain. However if
include KoiReferenceParser
ast = Parser.parse( program_text )
+
+ # Get the AST as a portable nested hash
+ ast_hash = ast.to_hash
=== Author & Credits

0 comments on commit ad201ac

Please sign in to comment.