Issue #305 new
JastAdd currently allows declaring tokens as NTAs. This is an unintended feature which should not be used for the following reasons:
- Tokens can have non-AST types and non-AST types can't be NTAs.
- In principle there is no difference between a computed token and an ordinary attribute. It is better to just use an attribute instead.
NTA tokens happen to work in some cases just because the code generation accidentally doesn't produce broken code.