Package ch.uzh.ifi.attempto.aceeditor.grammar

This package contains the grammar that is used by the ACE Editor.

See:
          Description

Class Summary
ACEGrammar This grammar class is automatically generated by the SWI Prolog program "generate_java.pl".
 

Package ch.uzh.ifi.attempto.aceeditor.grammar Description

This package contains the grammar that is used by the ACE Editor. The actual grammar is stored in the Prolog file "ace_grammar.pl". On the basis of this file, the Grammar-class ACEGrammar and the Prolog DCG grammar "dcg.pl" are automatically generated.

The script "reduce_dcg" is used to reduce the DCG grammar in a way that it keeps all its complexity but loses some syntactic sugar. The reduced grammar is stored in "dcg_r.pl". This reduced grammar is only used for regression testing. The script "generate_sentences" uses this grammar and generates all sentences up to a certain length. Those sentences are stored in "sentences.txt" which enables to track changes.

Author:
Tobias Kuhn


Copyright 2008-2009, Attempto Group, University of Zurich (see http://attempto.ifi.uzh.ch)