pobs.parser
Class PAny

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

public class PAny
extends PParser

Matches any single character if there is any left on the input. This is a terminal parser for which no BNF equivalent exists.

Author:
Martijn W. van der Lee

Constructor Summary
PAny()
           
 
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

PAny

public PAny()
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.