Skip to content

Commit

Permalink
Updated Readme to document the SyntaxNode.to_hash method.
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongough committed Aug 31, 2010
1 parent aeda0ba commit ad201ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.rdoc
Expand Up @@ -21,6 +21,7 @@ And turns it into an {Abstract Syntax Tree (AST)}[http://en.wikipedia.org/wiki/A
<AdditionOperator "+"> <AdditionOperator "+">
<IntegerLiteral "2"> <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 === Installation


Expand All @@ -36,6 +37,9 @@ This parser is normally installed as part of Koi's default toolchain. However if
include KoiReferenceParser include KoiReferenceParser


ast = Parser.parse( program_text ) ast = Parser.parse( program_text )

# Get the AST as a portable nested hash
ast_hash = ast.to_hash


=== Author & Credits === Author & Credits


Expand Down

0 comments on commit ad201ac

Please sign in to comment.