CubeTwister 2.0alpha142 2012-02-11

ch.randelshofer.rubik.parser
Class Syntax

java.lang.Object
  extended by ch.randelshofer.rubik.parser.Syntax

public class Syntax
extends java.lang.Object

Typesafe Enumeration of Syntaxes for the Parser.

Version:
9.0 2009-01-22 Reworked for ScriptParser 9.0.
5.0 2005-01-31 Reworked.
1.0 November 14, 2004 Created.
Author:
Werner Randelshofer

Field Summary
static Syntax CIRCUMFIX
          Circumfix syntax: The root is placed between begin and end.
static Syntax POSTCIRCUMFIX
          Post-Circumfix syntax: The affix is placed after the root.
static Syntax POSTINFIX
          Binary Post-Infix syntax: The affix is placed between post-root and pre-root.
static Syntax PRECIRCUMFIX
          Pre-Circumfix syntax: The affix is placed before the root.
static Syntax PREFIX
          Binary prefix syntax: The affix is placed between begin and end before the root.
static Syntax PREINFIX
          Binary Pre-Infix syntax: The affix is placed between pre-root and post-root.
static Syntax SUFFIX
          Binary suffix syntax: The affix is placed between begin and end after the root.
 
Method Summary
 int compareTo(java.lang.Object that)
           
static java.util.Vector getAllSyntaxes()
           
static java.util.Hashtable getSyntaxValueSet()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PREFIX

public static final Syntax PREFIX
Binary prefix syntax: The affix is placed between begin and end before the root.
 Binary Prefix ::= Begin , Affix , End , Root ;
 
Unary prefix syntax: The affix is placed before the root.
 Unary Prefix ::= Affix , Root ;
 


SUFFIX

public static final Syntax SUFFIX
Binary suffix syntax: The affix is placed between begin and end after the root.
 Binary Suffix ::= Root , Begin , Affix , End ;
 
Unary suffix syntax: The affix is placed after the root.
 Suffix ::= Root, Affix ;
 


CIRCUMFIX

public static final Syntax CIRCUMFIX
Circumfix syntax: The root is placed between begin and end.
 Circumfix ::= Begin , Root , End ;
 


PRECIRCUMFIX

public static final Syntax PRECIRCUMFIX
Pre-Circumfix syntax: The affix is placed before the root. Begin, delimiter and end tokens are placed around them.
 Precircumfix ::= Begin , Affix , Delimiter , Root , End ;
 


POSTCIRCUMFIX

public static final Syntax POSTCIRCUMFIX
Post-Circumfix syntax: The affix is placed after the root. Begin, delimiter and end tokens are placed around them.
 Postcircumfix ::= Begin , Root , Delimiter , Affix , End ;
 


PREINFIX

public static final Syntax PREINFIX
Binary Pre-Infix syntax: The affix is placed between pre-root and post-root.
 Infix ::= Pre-Root , Affix, Post-Root;
 


POSTINFIX

public static final Syntax POSTINFIX
Binary Post-Infix syntax: The affix is placed between post-root and pre-root.
 Infix ::= Post-Root , Affix , Pre-Root;
 

Method Detail

compareTo

public int compareTo(java.lang.Object that)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getAllSyntaxes

public static java.util.Vector getAllSyntaxes()

getSyntaxValueSet

public static java.util.Hashtable getSyntaxValueSet()

(c) Werner Randelshofer.
All rights reserved.