Felix has a new feature. Using this file:

/////// xx.flx /////////////////
#import <nugram.flxh>
open syntax felix;
////////////////////////////////

and this command (on Unix ..)

bin/flxp --document-grammar -Ilib xx

then point your browser at

        misc/gramdoc/index.html

This is (supposed to be) a fully cross-referenced specification
of the Felix grammar. For example misc/gramdoc/stype_constraint.html:

stype_constraint := 

  | epsilon
  | with squalified_name_comma_list
  | where sexpr
  | where sexpr with squalified_name_comma_list
  | with squalified_name_comma_list where sexpr


Currently, the productions for a non-terminal are all listed,
no matter which DSSL they're from. Might be worth specifying
the DSSL. There's an index of all nonterminals. DSSL's aren't
listed.

The idea here is to add 'documentary text' which will also
print: that text might be embedded in the grammar spec.

It's clear more of the 'meta' productions (such as ?+* etc)
need to be used to reduce the number of 'spurious' nonterminals.

Also, with one page for each nonteminal, some coherence is
lost that might arise if related non-terminals are listed
together.

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to