pobs.parser
Class PEOL

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

public class PEOL
extends PParser

Terminal parser which matches a line-ending.

Author:
Martijn W. van der Lee

Constructor Summary
PEOL()
          Sole constructor.
 
Method Summary
 PMatch parse(PScanner input, long begin, PContext context)
          Matches the Cariage Return and/or Line Feed characters in any known order, only one of each may appear.
 
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

PEOL

public PEOL()
Sole constructor.

Method Detail

parse

public PMatch parse(PScanner input,
                    long begin,
                    PContext context)
Matches the Cariage Return and/or Line Feed characters in any known order, only one of each may appear.

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