Skip to content

Commit

Permalink
fix typo in printnode. update to docstring descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
rcnlee committed Oct 2, 2017
1 parent 3e16ce5 commit 867e65f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ExprRules.jl
Expand Up @@ -315,7 +315,7 @@ end
"""
get_executable(rulenode::RuleNode, grammar::Grammar)
Returns the Expr contained in expression tree with root rulenode. The returned Expr can be executed using eval().
Returns the executable julia expression represented in the expression tree with root rulenode. The returned expression can be evaluated using eval().
"""
function get_executable(rulenode::RuleNode, grammar::Grammar)
root = !isnull(rulenode._val) ?
Expand Down Expand Up @@ -711,7 +711,7 @@ count_expressions(iter::ExpressionIterator) = count_expressions(iter.grammar, it

# Interface to AbstractTrees.jl
AbstractTrees.children(node::RuleNode) = node.children
AbstractTrees.printnode(io::IO, node::RuleNode) = print(io, tnode.ind)
AbstractTrees.printnode(io::IO, node::RuleNode) = print(io, node.ind)


end # module

0 comments on commit 867e65f

Please sign in to comment.