bnfc icon indicating copy to clipboard operation
bnfc copied to clipboard

position token vs --functor

Open ScottFreeCode opened this issue 2 years ago • 0 comments

The --functor CLI option adds position information to the generated AST. It seems to do so except for tokens.

The language position token makes tokens include position info.

Is there a reason to keep these separate? If so, when would I prefer the token's position info and when would I avoid it?

ScottFreeCode avatar Oct 23 '21 03:10 ScottFreeCode