CubeTwister 2.0alpha142 2012-02-11

Package ch.randelshofer.rubik.parser

Provides classes for parsing and interpreting cube scripts.

See:
          Description

Interface Summary
Notation Notation describes the tokens and syntax used by the Parser.
 

Class Summary
CommentNode A CommentNode holds descriptive text.
CommutationNode A CommutationNode holds a commutator A and a single child B.
ConjugationNode A ConjugationNode holds a conjugator A and a single child B.
CubeMarkupNotation CubeMarkupNotation reads its notation definition from a CubeMarkup XML 3 file.
DefaultNotation DefaultNotation supports Superset ENG.
GroupingNode A GroupingNode holds a sequence of children A.
InversionNode An InversionNode holds one child A.
InvertedList InvertedList.
MacroNode A MacroNode holds a macro identifier and an unparsed script String.
Move Symbol for move tokens.
MoveNode A MoveNode holds one rotation of one or multiple layers in a specific direction by a specific angle.
Node Abstract superclass for a Node in the parse tree generated by the Parser.
NOPNode A No Operation Node holds no children.
PermutationNode A PermutationNode holds a single permutation and orientatin change cycle of cube parts of a single type.
ReflectedList ReflectedList.
ReflectionNode Represents a node of a parsed script.
RepetitionNode RepetitionNode.
RotatedList RotatedList.
RotationNode A RotationNode holds a rotator A and a single child B.
ScriptKeyboardHandler A handler which parses keyboard input from a Cube3DCanvas.
ScriptParser Parser for rubik's cube scripts.
ScriptPlayer ScriptPlayer.
ScriptPlayerBeanInfo  
SequenceNode A SequenceNode holds a sequence of statements as its children A.
StatementNode A StatementNode is a structuring unit.
Symbol Typesafe Enumeration of Symbols generated by the Parser.
Syntax Typesafe Enumeration of Syntaxes for the Parser.
 

Package ch.randelshofer.rubik.parser Description

Provides classes for parsing and interpreting cube scripts.

Package Specification

The Parser is very flexible. A Notation object describes the tokens and syntax used by the Parser. The result of the parsing process is the parse tree. The parse tree consists of Node objects. A Node in a parse tree can be applied to a Cube object in order to alter the state of the Cube object. A ScriptPlayer can be used to play a script represented as a parse tree.


(c) Werner Randelshofer.
All rights reserved.