Torben,
To accomplish that, I would modify the reduction for "nonterminal" in
neotoma_parse.peg so that it accommodates uppercase letters as well,
then `make bootstrap` (I usually do it twice or more to be sure). All
nonterminal atoms are wrapped with single-quotes, so you should not have
a problem with the Erlang compiler.
Also, why do you need labels in the "alternative" rule? It passes
through the Node unmodified.
Sean
Torben Hoffmann wrote:
> Hi Sean,
>
> I am trying to allow the nonterminals to use uppercase letters, but
> with neotoma 1.4 I run into a problem with compilation after using the
> bootstrap option.
>
> Furthermore, I have tried to allow labels in 'alternative' so that the
> generation of an AST is easier, but that is also giving me problems.
>
> Could you briefly explain how to update your parser under the new
> regime? I had this working with neotoma 1.1 where I changed the
> peg_meta_gen.erl to fit my needs.
>
> The attached files shows what I am trying to do.
>
> Thanks in advance,
> Torben
> --
>
http://www.linkedin.com/in/torbenhoffmann