com.ossuminc.riddl.language.parsing.TopLevelParser
See theTopLevelParser companion class
object TopLevelParser
Attributes
- Companion
- class
- Source
- TopLevelParser.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TopLevelParser.type
Members list
Value members
Concrete methods
def parseInput(input: RiddlParserInput, withVerboseFailures: Boolean)(using io: PlatformContext): Either[Messages, Root]
Alternate, non-asynchronous interface to parsing.
Alternate, non-asynchronous interface to parsing. If you have your data already, you can just make your own RiddlParserInput from a string and call this to start parsing.
Value parameters
- input
-
The RiddlParserInput that contains the data to parse
- withVerboseFailures
-
For the utility of RIDDL implementers.
Attributes
- Returns
- Source
- TopLevelParser.scala
def parseNebulaFromInput(input: RiddlParserInput, withVerboseFailures: Boolean)(using io: PlatformContext): Either[Messages, Nebula]
Attributes
- Source
- TopLevelParser.scala
def parseString(input: String, withVerboseFailures: Boolean)(using PlatformContext): Either[Messages, Root]
Attributes
- Source
- TopLevelParser.scala
Main entry point into parsing.
Main entry point into parsing. This sets up the asynchronous (but maybe not parallel) parsing of the input to the parser.
Value parameters
- url
-
A
file://
orhttps://
based url to specify the source of the parser input - withVerboseFailures
-
Control whether parse failures are diagnosed verbosely or not. Typically only useful to maintainers of RIDDL, or test cases
Attributes
- Source
- TopLevelParser.scala
In this article