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.

So far I just have a bare bones grammar with one rule available here:

To "reproduce" in Emacs24
- Install erlang-mode
- Clone erl-parse and add it to the load-path
- require erl-parse
- Hit M-x eval-expression RET (erl-parse-string "foo()" 'function-call) RET

Any help would be very much appreciated!