A true rookie mistake :-/ Awesome, thank you!


2013/10/28 David Engster <deng@randomsample.de>
Thomas Järvstrand writes:
> I'm currently working on a new Erlang grammar for semantic/wisent. Lexical
> analysis works fine, but I can't for the life of me figure out how to get the
> parser to return a tag with the bounds properly set.

This is because you've defined your own tag generating macro
CALL-TAG. If you look into wisent/grammar-macros.el, you'll see that for
example in `wisent-grammar-FUNCTION-TAG', everything is finalized by
`wisent-raw-tag', which appends the positional information. You either
have to do this in your CALL-TAG macro, or you use the macros provided
by Wisent (like FUNCTION-TAG).

Good luck,