Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ocamlyacc: named attributes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-01-13 (22:59)
From: skaller <skaller@u...>
Subject: ocamlyacc: named attributes
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++: