org.extex.ocpware.compiler.left
Class LeftParser

java.lang.Object
  extended by org.extex.ocpware.compiler.left.LeftParser

public final class LeftParser
extends java.lang.Object

This utility class contains parser methods for left items.

Version:
$Revision:6007 $
Author:
Gerd Neugebauer

Method Summary
static ChoiceLeft choiceLeft(ParserStream s)
          Parse a choice left item.
static Left completeLeft(ParserStream s)
          Parse a complete left item.
static java.util.List<Left> left(ParserStream s)
          Parse a list of left items.
static Left oneLeft(ParserStream s)
          Parse a left item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

choiceLeft

public static ChoiceLeft choiceLeft(ParserStream s)
                             throws java.io.IOException,
                                    SyntaxException
Parse a choice left item.

Parameters:
s - the input stream
Returns:
the list of left items recognized
Throws:
java.io.IOException - in case of an I/O error
SyntaxException - in case of a syntax error

completeLeft

public static Left completeLeft(ParserStream s)
                         throws java.io.IOException,
                                SyntaxException
Parse a complete left item.

Parameters:
s - the input stream
Returns:
the complete left item
Throws:
java.io.IOException - in case of an I/O error
SyntaxException - in case of a syntax error

oneLeft

public static Left oneLeft(ParserStream s)
                    throws java.io.IOException,
                           SyntaxException
Parse a left item.

Parameters:
s - the input stream
Returns:
the left item acquired
Throws:
java.io.IOException - in case of an I/O error
SyntaxException - in case of a syntax error

left

public static java.util.List<Left> left(ParserStream s)
                                 throws java.io.IOException,
                                        SyntaxException
Parse a list of left items.

Parameters:
s - the input stream
Returns:
the list of left items recognized
Throws:
java.io.IOException - in case of an I/O error
SyntaxException - in case of a syntax error