Closed prakashk closed 11 years ago
moe> 1 + 2 {"CompilationUnitNode" : {"ScopeNode" : {"StatementsNode" : [{"BinaryOpNode" : {"lhs" : {"IntLiteralNode" : 1}, "operator" : "+", "rhs" : {"IntLiteralNode" : 2}}}]}}} 3
Turn on pretty-printing (use on, or yes, or 1 for option values)
moe> :set prettyPrintAST 1 moe> 1 + 2 { "CompilationUnitNode" : { "ScopeNode" : { "StatementsNode" : [ { "BinaryOpNode" : { "lhs" : { "IntLiteralNode" : 1 }, "operator" : "+", "rhs" : { "IntLiteralNode" : 2 } } } ] } } } 3
Other options handled for now: printOutput and dumpAST
Nice! That should make debugging / verifying parsing easier.
--Brock
@prakashk++
Turn on pretty-printing (use on, or yes, or 1 for option values)
Other options handled for now: printOutput and dumpAST