Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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++: http://felix.sf.net