Top Description Interfaces Classes Enums
[default module]

Package org.jparsec


Provides core Parser implementations for parser combinator logic.
Parser and Parsers are the 2 core classes in this package. Convenience API such as Terminals and OperatorTable are also provided.

Package Specification

The code is developed and tested under Java 5.0.

Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please check out CodeHaus

Interface Summary

Modifier and TypeInterface and Description
public interface
TokenMap<T>

Maps a Token to a an object of type T, or null if the token isn't recognized.

Class Summary

Modifier and TypeClass and Description
pack-priv class
pack-priv class
DelimitedParser<T>

Parses a list of pattern started with a delimiter, separated and optionally ended by the delimiter.

pack-priv class
EmptyListParser<T>

A parser that always returns an empty mutable list.

pack-priv class
EmptyParseError

Empty implementation of ParseErrorDetails for subclasses to override.

public class
Indentation

Processes indentation based lexical structure according to the Off-side rule.

pack-priv class
InternalFunctors

Functors used only internally by this package.

pack-priv class
Keywords

Helper class for creating lexers and parsers for keywords.

pack-priv class
Lexicon

A Lexicon is a group of lexical words that can be tokenized by a single tokenizer.

pack-priv abstract class
ListFactory<T>

Creates a {link List}.

pack-priv class
NestableBlockCommentScanner

Parses any nestable comment pattern.

pack-priv class
NumberLiteralsTranslator

Transforms the recognized character range to an integer within 64 bits.

pack-priv class
Operators

Helper class for creating parsers and lexers for operators.

public class
OperatorTable<T>

Builds Parser to parse expressions with operator-precedence grammar.

pack-priv abstract class
ParseContext

Represents the context state during parsing.

public abstract class
Parser<T>

Defines grammar and encapsulates parsing logic.

public class
Parsers

Provides common Parser implementations.

pack-priv class
ParserState

Represents ParseContext for token level parsing.

public class
ParseTree

Represents the syntactical structure of the input being parsed.

pack-priv class
ReluctantBetweenParser<T>

Deprecated
A parser that first consumes the start and end, and then tries to consume the middle.
pack-priv class
pack-priv class
public class
Scanners

Provides common Parser implementations that scan the source and match certain string patterns.

pack-priv class
ScannerState

Parser state for scanner.

pack-priv class
pack-priv class
public class
SourceLocation

Represents a location inside the source.

pack-priv class
SourceLocator

Locates the line and column number of a 0-based index in the source.

pack-priv class
StringLiteralsTranslator

Translates the recognized string literal to a String.

public class
Terminals

Provides convenient API to build lexer and parsers for terminals.

public class
Token

Represents any token with a token value and the 0-based index in the source.

pack-priv class
TokenizerMaps

Common Function implementations that maps from String.

public class
Tokens

Provides common token values.

pack-priv class
TreeNode

A TreeNode remembers it's parent (which corresponds to a parent parser that syntactically encloses this parter), it's previous node (which is the parser at the same syntactical level and had just succeeded before this parser started).

public class
WithSource<T>

Parsed result with the matched source text.

Enum Summary

Modifier and TypeEnum and Description
pack-priv enum
IntOrder

Maps two integers to a boolean value.

pack-priv enum