dfh.treepath
Class PathGrammar

java.lang.Object
  extended by dfh.treepath.PathGrammar

public class PathGrammar
extends Object

Grammar for parsing path expressions.

Author:
David F. Houghton - Apr 18, 2012

Nested Class Summary
static class PathGrammar.Axis
          Axes known to tree path grammar.
 
Field Summary
static Grammar g
          A reference to the compiled grammar, mostly useful for testing.
static String[] rules
          The grammar rules.
 
Method Summary
static void main(String[] args)
          Calls Grammar#describe() to print out a more readable list of the grammar's rules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rules

public static String[] rules
The grammar rules.


g

public static Grammar g
A reference to the compiled grammar, mostly useful for testing.

Method Detail

main

public static void main(String[] args)
Calls Grammar#describe() to print out a more readable list of the grammar's rules. Condition definitions are not provided but their semantics can be inferred from their names.

Parameters:
args -