pobs.parser
Class PDigit

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

public class PDigit
extends PParser

Matches any digit character ranging as defined by java.lang.Character.isDigit. This is a terminal parser for which no BNF equivalent exists.

Author:
Martijn W. van der Lee

Constructor Summary
PDigit()
          Sole constructor.
 
Method Summary
 PMatch parse(PScanner input, long begin, PContext context)
          Checks if there is any input left and matches any single character as defined by java.lang.Character.isDigit.
 
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

PDigit

public PDigit()
Sole constructor.

Method Detail

parse

public PMatch parse(PScanner input,
                    long begin,
                    PContext context)
Checks if there is any input left and matches any single character as defined by java.lang.Character.isDigit.

Parameters:
input - Input to be parsed.
begin - Index of first character of input to be parsed.
context - Parsing context.
Returns:
Parsing result.