This is the expected behavior for the engine. What you probably want though is the "trim reductions" option. That will eliminate the unnecessary non-terminal nodes from the tree. There is an icon for this in the tool bar somewhere I believe.
Let me start off by saying that I've never used anything like this before. I figured I'd start with something simple, parsing some code into a viewable tree. So I downloaded:1) The "Visual Basic Parse Tree" project from the Engines category.2) The "Visual Basic.NET" grammar.3) And the "GOLD Parser Builder", to recompile the grammar (since the engine wouldn't accept the precompiled grammar).Then I fed the engine some simple test code:module module1sub main()a=2*3end subend moduleLooking at the output, the tree structure is intelligible, but there appears to be an incredible amount of useless information. The following clip of the tree for the line "a=2*3" is an excellent example. Useful nodes that show what a token is, are nested deep within a majority of seemingly useless nodes, showing what the token isn't. As a complete newbie, I'm not sure what to make of this. Is there a flaw in the grammar or engine? Or is this expected behavior from a parser?--| | | | | | +-<Statements> ::= <Statement> <Statements>| | | | | | | +-<Statement> ::= <Non-Block Stm> <NL>| | | | | | | | +-<Non-Block Stm> ::= <Variable> <Assign Op> <Expression>| | | | | | | | | +-<Variable> ::= <Identifier> <Argument List Opt> <Method Calls>| | | | | | | | | | +-<Identifier> ::= ID| | | | | | | | | | | +-a| | | | | | | | | | +-<Argument List Opt> ::=| | | | | | | | | | +-<Method Calls> ::=| | | | | | | | | +-<Assign Op> ::= '='| | | | | | | | | | +-=| | | | | | | | | +-<Expression> ::= <And Exp>| | | | | | | | | | +-<And Exp> ::= <Not Exp>| | | | | | | | | | | +-<Not Exp> ::= <Compare Exp>| | | | | | | | | | | | +-<Compare Exp> ::= <Shift Exp>| | | | | | | | | | | | | +-<Shift Exp> ::= <Concat Exp>| | | | | | | | | | | | | | +-<Concat Exp> ::= <Add Exp>| | | | | | | | | | | | | | | +-<Add Exp> ::= <Modulus Exp>| | | | | | | | | | | | | | | | +-<Modulus Exp> ::= <Int Div Exp>| | | | | | | | | | | | | | | | | +-<Int Div Exp> ::= <Mult Exp>| | | | | | | | | | | | | | | | | | +-<Mult Exp> ::= <Negate Exp> '*' <Mult Exp>| | | | | | | | | | | | | | | | | | | +-<Negate Exp> ::= <Power Exp>| | | | | | | | | | | | | | | | | | | | +-<Power Exp> ::= <Value>| | | | | | | | | | | | | | | | | | | | | +-<Value> ::= IntLiteral| | | | | | | | | | | | | | | | | | | | | | +-2| | | | | | | | | | | | | | | | | | | +-*| | | | | | | | | | | | | | | | | | | +-<Mult Exp> ::= <Negate Exp>| | | | | | | | | | | | | | | | | | | | +-<Negate Exp> ::= <Power Exp>| | | | | | | | | | | | | | | | | | | | | +-<Power Exp> ::= <Value>| | | | | | | | | | | | | | | | | | | | | | +-<Value> ::= IntLiteral| | | | | | | | | | | | | | | | | | | | | | | +-3| | | | | | | | +-<NL> ::= NewLine| | | | | | | | | +-
You received this message because you are subscribed to the Google Groups "GOLD Parsing System" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gold-parsing-system/-/NhGloj05M94J.
To post to this group, send email to gold-pars...@googlegroups.com.
To unsubscribe from this group, send email to gold-parsing-sy...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gold-parsing-system?hl=en.
To unsubscribe from this group, send email to gold-parsing-system+unsub...@googlegroups.com.