Allow grammars without root node
Issue #147
resolved
JastAdd complains if there is no "root" node in the grammar:
[jastadd] generating node types and weaving aspects
[jastadd] Error: No root node available
We can remove this error since root nodes only affect collection attributes. The only thing we need to change is that collection attributes must check if there is a default root node - if not it should be explicitly declared in the collection declaration.
Comments (2)
-
reporter -
reporter - changed status to resolved
- Log in to comment
A root node is any ASTDecl for which
isRootNode
istrue
.