Parser

open class Parser

Constructors

Parser
Link copied to clipboard
fun Parser(source: Source, options: Parser.Options? = null)
Parser
Link copied to clipboard
fun Parser(source: String, options: Parser.Options? = null)
Parser
Link copied to clipboard
fun Parser(lexer: Lexer, options: Parser.Options? = null)

Types

Companion
Link copied to clipboard
object Companion
Options
Link copied to clipboard
data class Options(noLocation: Boolean?, allowLegacySDLEmptyFields: Boolean, allowLegacySDLImplementsInterfaces: Boolean)
Configuration options to control parser behavior

Functions

parseDocument
Link copied to clipboard
fun parseDocument(): DocumentNode
Document : Definition+
parseValueLiteral
Link copied to clipboard
fun parseValueLiteral(isConst: Boolean): ValueNode
Value{Const} :
  • ~Const Variable

  • IntValue

  • FloatValue

  • StringValue

  • BooleanValue

  • NullValue

  • EnumValue

  • ListValue?Const

  • ObjectValue?Const

BooleanValue : one of truefalseNullValue : nullEnumValue : Name but not true, false or null