com.ossuminc.riddl.language.parsing.TopLevelParser
See theTopLevelParser companion object
case class TopLevelParser(input: RiddlParserInput, withVerboseFailures: Boolean)(using io: PlatformContext) extends ExtensibleTopLevelParser
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 RootParsertrait ProcessorParsertrait VitalDefinitionParsertrait Readabilitytrait ParsingContexttrait ParsingErrorsclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
enum StatementsSet
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:
- ApplicationParser (hidden)
- Source
- ApplicationParser.scala
Attributes
- Inherited from:
- ApplicationParser (hidden)
- Source
- ApplicationParser.scala
Attributes
- Inherited from:
- ApplicationParser (hidden)
- Source
- ApplicationParser.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:
- Readability
- Source
- Readability.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:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- Readability
- Source
- Readability.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:
- 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:
- ApplicationParser (hidden)
- Source
- ApplicationParser.scala
Attributes
- Inherited from:
- ContextParser (hidden)
- Source
- ContextParser.scala
Attributes
- Inherited from:
- ReferenceParser (hidden)
- Source
- ReferenceParser.scala
def description[u : ParsingRun](implicit evidence$1: ParsingRun[u], ctx: ParsingRun[_]): ParsingRun[Description]
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
def doImport(loc: At, domainName: Identifier, url: LiteralString)(implicit ctx: ParsingRun[_]): Domain
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:
- 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:
- CommonParser (hidden)
- Source
- CommonParser.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:
- ApplicationParser (hidden)
- Source
- ApplicationParser.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:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.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:
- Readability
- Source
- Readability.scala
Attributes
- Inherited from:
- NoWhiteSpaceParsers (hidden)
- Source
- NoWhiteSpaceParsers.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
Attributes
- Inherited from:
- ParsingContext
- Source
- ParsingContext.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:
- 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:
- CommonParser (hidden)
- Source
- CommonParser.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:
- 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:
- ExtensibleTopLevelParser
- Source
- ExtensibleTopLevelParser.scala
Attributes
- Inherited from:
- ExtensibleTopLevelParser
- Source
- ExtensibleTopLevelParser.scala
Attributes
- Inherited from:
- ExtensibleTopLevelParser
- Source
- ExtensibleTopLevelParser.scala
def parseRule[RESULT <: RiddlValue](rpi: RiddlParserInput, rule: (ParsingRun[_]) => ParsingRun[RESULT], withVerboseFailures: Boolean)(validate: (result: Either[Messages, RESULT], input: RiddlParserInput, index: Int) => Either[Messages, RESULT]): Either[Messages, RESULT]
Attributes
- Inherited from:
- ParsingContext
- Source
- ParsingContext.scala
Attributes
- Inherited from:
- CommonParser (hidden)
- Source
- CommonParser.scala
def processorDefinitionContents[u : ParsingRun](statementsSet: StatementsSet): ParsingRun[OccursInProcessor]
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:
- 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:
- 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:
- 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:
- 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
In this article