- of(SCC.Graph<Node>) - Static method in class org.stekikun.dolmen.common.SCC
-
Computes and returns an instance of
SCC
which
describes the strongly connected components of the
given
graph
.
- of(BiFunction<String, Reader, L>, Function<L, T>, T) - Static method in interface org.stekikun.dolmen.debug.Tokenizer.LexerInterface
-
Typical usage of this method when MyLexer
has been generated
by Dolmen with a main
entry point and uses some Token.EOF
token for the end-of-input:
LexerInterface.of(MyLexer::new, MyLexer::main, Token.EOF)
- of(BiFunction<String, Reader, L>, Function<L, T>, Function<T, Cat>, T) - Static method in interface org.stekikun.dolmen.debug.TokenVisualizer.LexerInterface
-
Typical usage of this method when MyLexer
has been generated
by Dolmen with a main
entry point and uses some Token.EOF
token for the end-of-input:
LexerInterface.of(MyLexer::new, MyLexer::main, Token::getClass, Token.EOF)
- of(PExtent, List<CExtent>, String) - Static method in class org.stekikun.dolmen.syntax.CExtent
-
- of(String, IReport.Severity, CExtent) - Static method in interface org.stekikun.dolmen.syntax.IReport
-
- of(String, IReport.Severity, PExtent, PExtent.Hole) - Static method in interface org.stekikun.dolmen.syntax.IReport
-
- of(String, IReport.Severity, Located<?>) - Static method in interface org.stekikun.dolmen.syntax.IReport
-
- of(List<Option>, List<Located<String>>, Extent, Map<Located<String>, Regular>, Iterable<Lexer.Entry>, Extent) - Static method in class org.stekikun.dolmen.syntax.Lexer
-
- of(T, LexBuffer.Position, LexBuffer.Position) - Static method in class org.stekikun.dolmen.syntax.Located
-
- of(Located<String>, Located<String>) - Static method in class org.stekikun.dolmen.syntax.Option
-
This represents a syntactic option, there is no guarantee that
the key
corresponds to any of the option that Dolmen
actually understands, or that the value makes any sense.
- of(int, int) - Static method in class org.stekikun.dolmen.tagged.Optimiser.TagAddr
-
- of(PGrammar) - Static method in class org.stekikun.dolmen.unparam.Expansion
-
This performs the expansion (aka
monomorphization) of the parametric
grammar
pgrammar
, which must have been
checked to be expandable beforehand.
- ofExtent(Extent) - Static method in class org.stekikun.dolmen.syntax.PExtent
-
- offset - Variable in class org.stekikun.dolmen.codegen.LexBuffer.Position
-
The character offset of this position, starting at 0
- offset - Variable in class org.stekikun.dolmen.codegen.SourceMapping.Mapping
-
Character offset of the region being mapped
- offset - Variable in class org.stekikun.dolmen.codegen.SourceMapping.Origin
-
The starting offset of the source region
- offset - Variable in class org.stekikun.dolmen.syntax.PExtent.Hole
-
The offset of this hole in the enclosing extent
- offset - Variable in class org.stekikun.dolmen.tagged.Optimiser.TagAddr
-
- ofGrammar(Grammar, Reporter) - Static method in class org.stekikun.dolmen.codegen.Config
-
- ofGrammar(Grammar, int) - Static method in interface org.stekikun.dolmen.debug.Derivation.Displayer
-
The result is printed as if starting at column initialIndent
.
- ofIterable(String, Iterable<? extends T>) - Static method in interface org.stekikun.dolmen.common.Generator
-
- ofLexer(Lexer, Reporter) - Static method in class org.stekikun.dolmen.codegen.Config
-
- ofOptions(Config.Relevance, List<Option>, Reporter) - Static method in class org.stekikun.dolmen.codegen.Config
-
This method never fails to build a valid configuration, but
can report unexpected things such as illegal keys or values
through the reporter.
- ofPGrammar(PGrammar, Reporter) - Static method in class org.stekikun.dolmen.codegen.Config
-
- ok(T) - Static method in class org.stekikun.dolmen.common.Nulls
-
This is designed to "cast" a Nullable
value
to a NonNull
one in contexts where the type is
not strong enough but the programmer is sure enough (e.g.
- onChars(int) - Static method in class org.stekikun.dolmen.automaton.NFA.Event
-
- openBlock() - Method in class org.stekikun.dolmen.codegen.CodeBuilder
-
Opens a new curly-braced block with incremented
indentation, i.e. is equivalent to:
emit(" {");
incrIndent();
newline();
- optimise(Regulars.VarsInfo, boolean, TRegular) - Static method in class org.stekikun.dolmen.tagged.Optimiser
-
- Optimiser - Class in org.stekikun.dolmen.tagged
-
This class implements optimisations of
tagged regular exceptions
in order to minimise the number of tags
(which have a big impact on the complexity
of the translation into a DFA).
- Optimiser.Allocated - Class in org.stekikun.dolmen.tagged
-
This structure represents the result of optimising a tagged
regular expression: it packs together the resulting tagged
expression, the list of
Optimiser.IdentInfo
for each possible
bound variable in the original regular expression, and the
overall number of different memory cells needed to store
all markers at run-time.
- Optimiser.IdentInfo - Class in org.stekikun.dolmen.tagged
-
Structure which represents how an indentifier in
a regular expression is realized in optimised tagged
regular expressions, i.e. provides
tag
addresses for the start and end of the expression bound
to the identifier, and whether it is optional or not.
- Optimiser.TagAddr - Class in org.stekikun.dolmen.tagged
-
- Optimiser.TagKey - Class in org.stekikun.dolmen.tagged
-
- Option - Class in org.stekikun.dolmen.syntax
-
An
Option
instance represents a configuration
option as set in a lexer or parser description file.
- optional - Variable in class org.stekikun.dolmen.tagged.Optimiser.IdentInfo
-
Whether the identifier is only optionally bound
- options - Variable in class org.stekikun.dolmen.syntax.Lexer
-
The configuration options specified in this grammar
- options - Variable in class org.stekikun.dolmen.syntax.PGrammar
-
The configuration options specified in this grammar
- options - Variable in class org.stekikun.dolmen.unparam.Grammar
-
The configuration options specified in this grammar
- optVars - Variable in class org.stekikun.dolmen.syntax.Regulars.VarsInfo
-
All variables optionally matched in the regular expression
- or(Regular, Regular) - Static method in class org.stekikun.dolmen.syntax.Regular
-
- or(Regular, Regular...) - Static method in class org.stekikun.dolmen.syntax.Regular
-
- or(TRegular, TRegular) - Static method in class org.stekikun.dolmen.tagged.TRegular
-
- org.stekikun.dolmen.automaton - package org.stekikun.dolmen.automaton
-
- org.stekikun.dolmen.cli - package org.stekikun.dolmen.cli
-
This package contains the command-line interface and entry point
for command-line usage of the Dolmen generation engine.
- org.stekikun.dolmen.codegen - package org.stekikun.dolmen.codegen
-
- org.stekikun.dolmen.common - package org.stekikun.dolmen.common
-
- org.stekikun.dolmen.debug - package org.stekikun.dolmen.debug
-
This package contains generic utility functions to help debug
Dolmen-generated lexical analyzers and parsers.
- org.stekikun.dolmen.syntax - package org.stekikun.dolmen.syntax
-
- org.stekikun.dolmen.tagged - package org.stekikun.dolmen.tagged
-
- org.stekikun.dolmen.unparam - package org.stekikun.dolmen.unparam
-
- origin - Variable in class org.stekikun.dolmen.codegen.SourceMapping.Mapping
-
Original position of the mapped region
- Origin(int, int, String, Map<String, String>) - Constructor for class org.stekikun.dolmen.codegen.SourceMapping.Origin
-
Constructs an origin description from the given parameters
- others - Variable in class org.stekikun.dolmen.automaton.DFA.State
-
Maps character sets indices to memory maps.
- output(Writer, String, Config, Automata) - Static method in class org.stekikun.dolmen.codegen.AutomataOutput
-
Generates the code from the automata aut
in
a Java class with name className
, exported
using the given writer
and parameterized
by the configuration config
.
- output(Writer, String, Config, Grammar, Grammars.PredictionTable) - Static method in class org.stekikun.dolmen.codegen.GrammarOutput
-
Outputs to writer
the definition of a top-down
parser for the given grammar
, provided the prediction table
predict
has no conflicts.
- output(Writer, String, Config, int, List<TokenDecl>) - Static method in class org.stekikun.dolmen.codegen.TokensOutput
-
Outputs to writer
the definition of a token class
for the tokens described in tokenDecls
.
- outputDefault(Writer, String, Automata) - Static method in class org.stekikun.dolmen.codegen.AutomataOutput
-
- outputDefault(Writer, String, Grammar, Grammars.PredictionTable) - Static method in class org.stekikun.dolmen.codegen.GrammarOutput
-