OK, I did some playing. Regexp names can't be looked up sensibly
in other dssls. The reason is the lookup needs to be done
when the "rule" for a grammar production is layed down (i.e. translated
from Felix to Dypgen). This is done when building the dssl, before opening it.
So foreign regdef names don't exist yet.

Unfortunately the binding is directly to a Dyp.regexp term, and there's no 
further
point at which the lookup can be done. There's no way in Dypgen to add to the
list of pre-defined regexps (defined by let in the %lexer section of the hard
coded grammar).

So, the binding requires all the regexps locally. You just need to define 
nonterminals in the same dssl. If you need a new literal .. you have to 
redefine the regexps required. I may find a solution to this later.
Note, the regexps are tree-expanded anyhow (so there's no saving
using names).

--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to