| Package | Description |
|---|---|
| jfun.parsec |
Provides classes and interfaces for parser combinator logic and basic parsers.
|
| jfun.parsec.tokens |
Provides some predefined tokens and Tokenizer implementations.
|
| Class and Description |
|---|
| _
This class is an indicator of "no value".
|
| Accumulatable
Factory to create an Accumulator object.
|
| Accumulator
Used to accumulate objects.
|
| ArrayFactory
A factory to create arrays.
|
| Catch
To catch a pseudo-exception 'thrown' from a Parser.
|
| FromChar
maps char to Object.
|
| FromLong
maps long to Object.
|
| FromMyText
Used by class Terms to identify a MyToken object.
|
| FromString
maps string to Object.
|
| FromString3
maps 3 strings to object.
|
| FromToken
maps a token object to an Object.
|
| Map
maps one object to another.
|
| Map2
maps two objects to one object.
|
| Map3
maps 3 objects to an Object.
|
| Map4
maps 4 objects to an Object.
|
| Map5
maps 5 objects to an Object.
|
| Mapn
Responsible for mapping an array of n objects to one object.
|
| ObjectPredicate
Maps an Object to a boolean value.
|
| OperatorTable
This class is used to describe operator information.
|
| Pair
This is a simple Java Bean for a pair of objects.
|
| ParseError
Describes Parse error.
|
| Parser
A parser runs either on character level or token level.
|
| ParserEval
This is to provide laziness of a Parser.
|
| ParserException
ParserException is thrown when a grammar error happens.
|
| Pos
Pos represents a position in the source.
|
| PositionedToken
Deprecated.
Use
Tok instead. |
| PositionMap
The interface to find the line number,
column number of a certain position in the source.
|
| ShowToken
To convert a token object to String.
|
| Terms
This helper class provides convenient api's to build lexer
and parsers for terminals.
|
| Tok
This class carries the position information of a token.
|
| Tokenizer
A tokenizer is used by a scanner object to interpret the output of a Scanner.
|
| ToParser
Maps an Object to a Parser.
|
| Tuple3
This is a simple Java Bean for 3 objects.
|
| Tuple4
This is a simple Java Bean for 4 objects.
|
| Tuple5
This is a simple Java Bean for 5 objects.
|
| Unary
This interface represents a unary operation on the same type.
|
| Words
This helper class provides convenient api's to build lexer
and parsers for keywords and operators.
|
| Class and Description |
|---|
| Tokenizer
A tokenizer is used by a scanner object to interpret the output of a Scanner.
|