[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Till Varoquaux <till.varoquaux@g...> |
| Subject: | Re: [Caml-list] ocamlyacc: named attributes |
Hmm,
Probably a dumb question, but: why not use Menhir? It's supposedly
strictly more powerfull than ocamlyacc and has this feature.
Till
On 1/13/07, skaller <skaller@users.sourceforge.net> wrote:
> What is involved in changing Ocamlyacc to allow names instead
> of numbers? Use of numbered attributes is inconvenient when refactoring
> a grammar.
>
> The simplest use would be:
>
> fred: one two { $one, $two }
>
> where the name of a non-terminal can be used instead
> of its index, provided it is unique.
>
> --
> John Skaller <skaller at users dot sf dot net>
> Felix, successor to C++: http://felix.sf.net
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>