The TopLevel (Root) parser. This class munges all the individual parsers together and provides top level parsing functionality.
Value parameters
- input
-
The RiddlParserInput that contains the data to parse
- withVerboseFailures
-
For the utility of RIDDL implementers.
Attributes
- Companion
- object
- Source
- TopLevelParser.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExtensibleTopLevelParsertrait TokenStreamParsertrait RootParsertrait ProcessorParsertrait VitalDefinitionParsertrait Readabilitytrait ParsingContexttrait ParsingErrorsclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- StatementParser (hidden)
- Source
- StatementParser.scala
- Supertypes
Value members
Inherited methods
Attributes
- Inherited from:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- AdaptorParser (hidden)
- Source
- AdaptorParser.scala
Attributes
- Inherited from:
- TypeParser (hidden)
- Source
- TypeParser.scala
Attributes
- Inherited from:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- TypeParser (hidden)
- Source
- TypeParser.scala
Attributes
- Inherited from:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- ParsingContext
- Source
- ParsingContext.scala
Attributes
- Inherited from:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- ParsingContext
- Source
- ParsingContext.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- TokenStreamParser
- Source
- TokenStreamParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- StreamingParser (hidden)
- Source
- StreamingParser.scala
Attributes
- Inherited from:
- TypeParser (hidden)
- Source
- TypeParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- GroupParser (hidden)
- Source
- GroupParser.scala
Attributes
- Inherited from:
- ContextParser (hidden)
- Source
- ContextParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- ParsingContext
- Source
- ParsingContext.scala
Attributes
- Inherited from:
- ParsingContext
- Source
- ParsingContext.scala
Attributes
- Inherited from:
- DomainParser (hidden)
- Source
- DomainParser.scala
Attributes
- Inherited from:
- EntityParser (hidden)
- Source
- EntityParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- TypeParser (hidden)
- Source
- TypeParser.scala
Attributes
- Inherited from:
- TypeParser (hidden)
- Source
- TypeParser.scala
Attributes
- Inherited from:
- EpicParser (hidden)
- Source
- EpicParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- ParsingErrors
- Source
- ParsingErrors.scala
Attributes
- Inherited from:
- NoWhiteSpaceParsers (hidden)
- Source
- NoWhiteSpaceParsers.scala
Attributes
- Inherited from:
- TypeParser (hidden)
- Source
- TypeParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- StreamingParser (hidden)
- Source
- StreamingParser.scala
Attributes
- Inherited from:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- FunctionParser (hidden)
- Source
- FunctionParser.scala
Attributes
- Inherited from:
- FunctionParser (hidden)
- Source
- FunctionParser.scala
Parses function literals, i.e.
Parses function literals, i.e.
function myFunction is {
requires is Boolean
returns is Integer
statements | comments | functions | terms
}
Attributes
- Inherited from:
- FunctionParser (hidden)
- Source
- FunctionParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- ParsingContext
- Source
- ParsingContext.scala
Attributes
- Inherited from:
- GroupParser (hidden)
- Source
- GroupParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- HandlerParser (hidden)
- Source
- HandlerParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- HandlerParser (hidden)
- Source
- HandlerParser.scala
Attributes
- Inherited from:
- NoWhiteSpaceParsers (hidden)
- Source
- NoWhiteSpaceParsers.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- TokenStreamParser
- Source
- TokenStreamParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- StreamingParser (hidden)
- Source
- StreamingParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- TokenStreamParser
- Source
- TokenStreamParser.scala
Attributes
- Inherited from:
- NoWhiteSpaceParsers (hidden)
- Source
- NoWhiteSpaceParsers.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- ParsingErrors
- Source
- ParsingErrors.scala
Attributes
- Inherited from:
- ParsingErrors
- Source
- ParsingErrors.scala
Attributes
- Inherited from:
- NoWhiteSpaceParsers (hidden)
- Source
- NoWhiteSpaceParsers.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- TokenStreamParser
- Source
- TokenStreamParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- StreamingParser (hidden)
- Source
- StreamingParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- ParsingErrors
- Source
- ParsingErrors.scala
Attributes
- Inherited from:
- ParsingErrors
- Source
- ParsingErrors.scala
Attributes
- Inherited from:
- TypeParser (hidden)
- Source
- TypeParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- ModuleParser (hidden)
- Source
- ModuleParser.scala
Attributes
- Inherited from:
- ModuleParser (hidden)
- Source
- ModuleParser.scala
Attributes
- Inherited from:
- ModuleParser (hidden)
- Source
- ModuleParser.scala
Attributes
- Inherited from:
- NebulaParser (hidden)
- Source
- NebulaParser.scala
Attributes
- Inherited from:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- HandlerParser (hidden)
- Source
- HandlerParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- ProcessorParser
- Source
- ProcessorParser.scala
Attributes
- Inherited from:
- TokenStreamParser
- Source
- TokenStreamParser.scala
Attributes
- Inherited from:
- StreamingParser (hidden)
- Source
- StreamingParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- ParsingContext
- Source
- ParsingContext.scala
Attributes
- Inherited from:
- TokenStreamParser
- Source
- TokenStreamParser.scala
Attributes
- Inherited from:
- TokenStreamParser
- Source
- TokenStreamParser.scala
Parse the input expecting main definitions in any order, a nebula.
Parse the input expecting main definitions in any order, a nebula. Each definition must be syntactically correct but the top level definitions do not require the hierarchical structure of parsing for Root contents.
Attributes
- Returns
-
Either the failure messages or the Nebula of definitions
- Inherited from:
- ExtensibleTopLevelParser
- Source
- ExtensibleTopLevelParser.scala
Parse the input expecting definitions in any order, a nebula.
Parse the input expecting definitions in any order, a nebula. Each definition must be syntactically correct but the top level definitions do not require the hierarchical structure of parsing for Root contents.
Attributes
- Returns
-
Either the failure messages with the list of parsed URL or the Nebula of definitions with the list of parsed URLs
- Inherited from:
- ExtensibleTopLevelParser
- Source
- ExtensibleTopLevelParser.scala
Parse the input expecting the contents of a Root node
Parse the input expecting the contents of a Root node
Attributes
- Returns
-
Either the failure error messages or the Root parsed
- Inherited from:
- ExtensibleTopLevelParser
- Source
- ExtensibleTopLevelParser.scala
Parse the input expecting the contents of a Root node but also return the list of files that were read
Parse the input expecting the contents of a Root node but also return the list of files that were read
Attributes
- Returns
-
Either the failure messages and a list of files or the Root that was parsed and the list of files parsed.
- Inherited from:
- ExtensibleTopLevelParser
- Source
- ExtensibleTopLevelParser.scala
Attributes
- Inherited from:
- ParsingContext
- Source
- ParsingContext.scala
Attributes
- Inherited from:
- ExtensibleTopLevelParser
- Source
- ExtensibleTopLevelParser.scala
Obtain the parser for any of the main AST definition types
Obtain the parser for any of the main AST definition types
Attributes
- Inherited from:
- ExtensibleTopLevelParser
- Source
- ExtensibleTopLevelParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- TokenStreamParser
- Source
- TokenStreamParser.scala
Attributes
- Inherited from:
- ProcessorParser
- Source
- ProcessorParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Parses projector definitions, e.g.
Parses projector definitions, e.g.
projector myView is {
foo: Boolean
bar: Integer
}
Attributes
- Inherited from:
- ProjectorParser (hidden)
- Source
- ProjectorParser.scala
Attributes
- Inherited from:
- StatementParser (hidden)
- Source
- StatementParser.scala
Attributes
- Inherited from:
- TokenStreamParser
- Source
- TokenStreamParser.scala
Attributes
- Inherited from:
- TokenStreamParser
- Source
- TokenStreamParser.scala
Attributes
- Inherited from:
- TokenStreamParser
- Source
- TokenStreamParser.scala
Attributes
- Inherited from:
- ProcessorParser
- Source
- ProcessorParser.scala
Attributes
- Inherited from:
- ProcessorParser
- Source
- ProcessorParser.scala
Attributes
- Inherited from:
- RepositoryParser (hidden)
- Source
- RepositoryParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- RootParser
- Source
- RootParser.scala
Attributes
- Inherited from:
- StreamingParser (hidden)
- Source
- StreamingParser.scala
Attributes
- Inherited from:
- SagaParser (hidden)
- Source
- SagaParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- SagaParser (hidden)
- Source
- SagaParser.scala
Attributes
- Inherited from:
- RepositoryParser (hidden)
- Source
- RepositoryParser.scala
Attributes
- Inherited from:
- StatementParser (hidden)
- Source
- StatementParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- StreamingParser (hidden)
- Source
- StreamingParser.scala
Attributes
- Inherited from:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- StreamingParser (hidden)
- Source
- StreamingParser.scala
Attributes
- Inherited from:
- StreamingParser (hidden)
- Source
- StreamingParser.scala
Attributes
- Inherited from:
- EntityParser (hidden)
- Source
- EntityParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- StatementParser (hidden)
- Source
- StatementParser.scala
Attributes
- Inherited from:
- StreamingParser (hidden)
- Source
- StreamingParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- NoWhiteSpaceParsers (hidden)
- Source
- NoWhiteSpaceParsers.scala
Attributes
- Inherited from:
- TypeParser (hidden)
- Source
- TypeParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- NoWhiteSpaceParsers (hidden)
- Source
- NoWhiteSpaceParsers.scala
Attributes
- Inherited from:
- NoWhiteSpaceParsers (hidden)
- Source
- NoWhiteSpaceParsers.scala
Attributes
- Inherited from:
- EpicParser (hidden)
- Source
- EpicParser.scala
Attributes
- Inherited from:
- DomainParser (hidden)
- Source
- DomainParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
Attributes
- Inherited from:
- EpicParser (hidden)
- Source
- EpicParser.scala
Attributes
- Inherited from:
- VitalDefinitionParser
- Source
- VitalDefinitionParser.scala
Attributes
- Inherited from:
- StreamingParser (hidden)
- Source
- StreamingParser.scala
Attributes
- Inherited from:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- ParsingErrors
- Source
- ParsingErrors.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala