pobs.parser
Class PToken

java.lang.Object
  extended bypobs.PParser
      extended bypobs.parser.PToken
All Implemented Interfaces:
PObject

public class PToken
extends PParser

Matches The tokens specified similar character by character. Uses case sensitivity directive. BNF: parser := "abc"

Author:
Martijn W. van der Lee

Constructor Summary
PToken(java.lang.String token)
          Sole constructor.
 
Method Summary
 PMatch parse(PScanner input, long begin, PContext context)
           
 
Methods inherited from class pobs.PParser
addControl, getErrorInfo, process, setErrorInfo, setMatchAction, setMismatchAction
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PToken

public PToken(java.lang.String token)
Sole constructor.

Parameters:
token - a string which is matched
Method Detail

parse

public PMatch parse(PScanner input,
                    long begin,
                    PContext context)
Parameters:
input - Input to be parsed.
begin - Index of first character of input to be parsed.
context - Parsing context.
Returns:
Parsing result.