Package | Description |
---|---|
org.jamplate.impl |
Jamplate specific implementations.
|
org.jamplate.impl.parser |
A package containing implementations of the interface
Parser . |
org.jamplate.impl.processor |
A package containing implementations of the interface
Processor . |
Modifier and Type | Field and Description |
---|---|
static @NotNull Parser |
Parsers.CM_BLK
A parser that parses comment blocks.
|
static @NotNull Parser |
Parsers.CM_SLN
A parser that parses commented lines.
|
static @NotNull Parser |
Parsers.CX_CMD
A parser that parses a single-line command.
|
static @NotNull Parser |
Parsers.CX_CMD_CAPTURE
A parser that parses
#capture commands. |
static @NotNull Parser |
Parsers.CX_CMD_CONSOLE
A parser that parses
#console commands. |
static @NotNull Parser |
Parsers.CX_CMD_DECLARE
A parser that parses
#declare commands. |
static @NotNull Parser |
Parsers.CX_CMD_DEFINE
A parser that parses
#define commands. |
static @NotNull Parser |
Parsers.CX_CMD_ELIF
A parser that parses
#elif commands. |
static @NotNull Parser |
Parsers.CX_CMD_ELIFDEF
A parser that parses
#elifdef commands. |
static @NotNull Parser |
Parsers.CX_CMD_ELIFNDEF
A parser that parses
#elifndef commands. |
static @NotNull Parser |
Parsers.CX_CMD_ELSE
A parser that parses
#else commands. |
static @NotNull Parser |
Parsers.CX_CMD_ENDCAPTURE
A parser that parses
#endcapture commands. |
static @NotNull Parser |
Parsers.CX_CMD_ENDFOR
A parser that parses
#endfor commands. |
static @NotNull Parser |
Parsers.CX_CMD_ENDIF
A parser that parses
#endif commands. |
static @NotNull Parser |
Parsers.CX_CMD_ENDWHILE
A parser that parses
#endwhile commands. |
static @NotNull Parser |
Parsers.CX_CMD_ERROR
A parser that parses
#error commands. |
static @NotNull Parser |
Parsers.CX_CMD_FOR
A parser that parses
#for commands. |
static @NotNull Parser |
Parsers.CX_CMD_IF
A parser that parses
#if commands. |
static @NotNull Parser |
Parsers.CX_CMD_IFDEF
A parser that parses
#ifdef commands. |
static @NotNull Parser |
Parsers.CX_CMD_IFNDEF
A parser that parses
#ifndef commands. |
static @NotNull Parser |
Parsers.CX_CMD_INCLUDE
A parser that parses
#include commands. |
static @NotNull Parser |
Parsers.CX_CMD_MESSAGE
A parser that parses
#message commands. |
static @NotNull Parser |
Parsers.CX_CMD_SPREAD
A parser that parses
#spread commands. |
static @NotNull Parser |
Parsers.CX_CMD_UNDEC
A parser that parses
#undec commands. |
static @NotNull Parser |
Parsers.CX_CMD_UNDEF
A parser that parses
#undef commands. |
static @NotNull Parser |
Parsers.CX_CMD_WHILE
A parser that parses
#while commands. |
static @NotNull Parser |
Parsers.CX_INJ
A parser parsing injection sequences.
|
static @NotNull Parser |
Parsers.DC_EOL
A parser parsing line separators (
\n or \r or \r\n ). |
static @NotNull Parser |
Parsers.OP_ADD
A parser that parses addition symbols.
|
static @NotNull Parser |
Parsers.OP_DIV
A parser that parses division symbols.
|
static @NotNull Parser |
Parsers.OP_EQL
A parser that parses equal symbols.
|
static @NotNull Parser |
Parsers.OP_LEQ
A parser that parses less than or equals symbols.
|
static @NotNull Parser |
Parsers.OP_LND
A parser that parses logical and symbols.
|
static @NotNull Parser |
Parsers.OP_LOR
A parser that parses logical or symbols.
|
static @NotNull Parser |
Parsers.OP_LTN
A parser that parses less than symbols.
|
static @NotNull Parser |
Parsers.OP_MEQ
A parser that parses more than or equals symbols.
|
static @NotNull Parser |
Parsers.OP_MOD
A parser that modulo symbols.
|
static @NotNull Parser |
Parsers.OP_MTN
A parser that parses more than symbols.
|
static @NotNull Parser |
Parsers.OP_MUL
A parser that parses multiplication symbols.
|
static @NotNull Parser |
Parsers.OP_NEG
A parser that parses negation symbols.
|
static @NotNull Parser |
Parsers.OP_NQL
A parser that parses not-equals symbols.
|
static @NotNull Parser |
Parsers.OP_SUB
A parser that parses subtraction symbols.
|
static @NotNull Parser |
Jamplate.PARSER
An all-in-one parser used by the jamplate default implementation.
|
static @NotNull Parser |
Parsers.SX_CLN
A parser parsing colons.
|
static @NotNull Parser |
Parsers.SX_CMA
A parser parsing commas.
|
static @NotNull Parser |
Parsers.SX_CUR
A parser parsing curly brackets.
|
static @NotNull Parser |
Parsers.SX_DQT
A parser parsing double quotes.
|
static @NotNull Parser |
Parsers.SX_NME
A parser that parses names.
|
static @NotNull Parser |
Parsers.SX_NUM
A parser parsing numbers.
|
static @NotNull Parser |
Parsers.SX_QTE
A parser parsing quotes.
|
static @NotNull Parser |
Parsers.SX_RND
A parser parsing round brackets.
|
static @NotNull Parser |
Parsers.SX_SQR
A parser parsing square brackets.
|
Modifier and Type | Class and Description |
---|---|
class |
CollectParser
Because
Tree.offer(Tree) uses Tree.pop() . |
class |
CombineParser
A parser that combines the results of multiple other parsers.
|
class |
FilterByKindParser
A parser that parses using another parser and only parses trees with a kind equal to a
pre-specified kind.
|
class |
FilterHierarchyByKindParser
A parser that searches in the hierarchy of the tree given to it (including the tree
itself) looking for trees with a pre-specified kind.
|
class |
HierarchyParser
A parser that attempt to parse every tree in the hierarchy of the tree provided to it
(including the tree itself) and parses using another parser.
|
class |
MergeByOrderParser
A parser that merges the clashing sketches resulting from another parser going from the
first to the last tree sequentially.
|
class |
MergeByWeightParser
A parser that uses multiple other parsers for parsing.
|
class |
MergeFlatByOrderParser
A merging parser that does not allow two trees having any dominance between each other.
|
class |
MergeFlatByWeightParser
An
MergeByWeightParser that does not allow any dominance between the results. |
class |
OfferParser
A parser that parses using another parser and combines the results into one tree then
return it.
|
class |
PatternGroupParser
A parser that parses by pattern groups.
|
class |
PatternParser
A parser parsing literal sketches depending on a specific pattern.
|
class |
PatternRangeParser
A parser parsing scope sketches depending on a specific starting and ending pattern.
|
class |
RecursiveParser
A parser that parses using another parser then add to the results the result of parsing
each tree using this parser (which will make it parse recursively).
|
class |
ThenAddParser
A parser that parses using another parser then parser each resultant tree using another
parser and add them to the results.
|
class |
ThenOfferParser
A parser that parses using another parser then parses each resultant tree using another
parser and offers the results to that tree.
|
Modifier and Type | Field and Description |
---|---|
protected @NotNull Parser |
HierarchyParser.parser
The wrapped parser.
|
protected @NotNull Parser |
RecursiveParser.parser
The wrapped parser.
|
protected @NotNull Parser |
FilterByKindParser.parser
The wrapped parser.
|
protected @NotNull Parser |
ThenAddParser.parser
The parser.
|
protected @NotNull Parser |
FilterHierarchyByKindParser.parser
The wrapped parser.
|
protected @NotNull Parser |
MergeByOrderParser.parser
The parser this parser is wrapping.
|
protected @NotNull Parser |
CollectParser.parser
The wrapped parser.
|
protected @NotNull Parser |
ThenOfferParser.parser
The parser.
|
protected @NotNull Parser |
OfferParser.parser
The wrapped parser.
|
protected @NotNull Parser |
ThenAddParser.then
The then parser.
|
protected @NotNull Parser |
ThenOfferParser.then
The then parser.
|
Constructor and Description |
---|
CollectParser(@NotNull Parser parser)
Construct a new parser wrapping the given
parser and splitting the results
returned by it. |
CombineParser(Parser... parsers)
Construct a new parser that combines the results of the given
parsers . |
FilterByKindParser(@NotNull java.lang.String kind,
@NotNull Parser parser)
Construct a new parser that only parses trees that have the given
kind and
parses using the given parser . |
FilterHierarchyByKindParser(@NotNull java.lang.String kind,
@NotNull Parser parser)
Construct a new parser that parses the trees with the given
kind in the
tree given to it (including the tree itself) using the given parser . |
HierarchyParser(@NotNull Parser parser)
Construct a new hierarchy parser that uses the given
parser . |
MergeByOrderParser(@NotNull Parser parser)
Construct a sequential clash merging parser merging the results of invoking the
given
parser . |
MergeByWeightParser(Parser... parsers)
Construct a new parser that uses the given
parsers preferring the results
from the parsers at the start that the results from the parsers that at the end
when a clash occur between their results. |
MergeFlatByOrderParser(@NotNull Parser parser)
Construct a new parser that filters the results to have no dominance between
etcher.
|
MergeFlatByWeightParser(Parser... parsers)
Construct a new parser that uses the given
parsers preferring the results
from the parsers at the start that the results from the parsers that at the end
when a clash occur between their results. |
OfferParser(@NotNull Parser parser)
Construct a new parser that parses using the given
parser then offer the
results into one tree and return it. |
RecursiveParser(@NotNull Parser parser)
Construct a new recursive parser that parses using the given
parser . |
ThenAddParser(@NotNull Parser parser,
@NotNull Parser then)
Construct a parser that parses using the given
parser then parses each
resultant tree using the given then and add it to the results. |
ThenAddParser(@NotNull Parser parser,
@NotNull Parser then)
Construct a parser that parses using the given
parser then parses each
resultant tree using the given then and add it to the results. |
ThenOfferParser(@NotNull Parser parser,
@NotNull Parser then)
Construct a parser that parses using the given
parser then parses each
resultant tree using the given then parser and offer results to that tree. |
ThenOfferParser(@NotNull Parser parser,
@NotNull Parser then)
Construct a parser that parses using the given
parser then parses each
resultant tree using the given then parser and offer results to that tree. |
Modifier and Type | Field and Description |
---|---|
protected @NotNull Parser |
ParserProcessor.parser
The parser of this processor.
|
Constructor and Description |
---|
ParserProcessor(@NotNull Parser parser)
Construct a new processor that parses using the given
parser . |