org.sc3d.apt.sss.v3
Class Validator

java.lang.Object
  extended by org.sc3d.apt.sss.v3.Parser
      extended by org.sc3d.apt.sss.v3.Validator

public class Validator
extends Parser

A tool for checking that SSS files obey a grammar.


Field Summary
 
Fields inherited from class org.sc3d.apt.sss.v3.Parser
ndfa
 
Method Summary
static void main(java.lang.String[] args)
          First argument is the filename of the grammar specification.
 java.lang.Object postProcess(Tree raw)
          Descends into all brackets to make sure everything gets parsed.
 
Methods inherited from class org.sc3d.apt.sss.v3.Parser
interactiveTest, parse, parseTokens
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

postProcess

public java.lang.Object postProcess(Tree raw)
Descends into all brackets to make sure everything gets parsed. Always returns 'null'.

Overrides:
postProcess in class Parser
Parameters:
raw - the non-null parse-tree.
Returns:
a grammar-specific data structure, or 'null' if there were errors.

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
First argument is the filename of the grammar specification. Subsequent filenames are the filenames of files obeying the grammar.

Throws:
java.io.IOException