Skip to content

syntax ​

luau
local syntax = require("@std/syntax")

WARNING

These APIs are still open to future evolution. In new major versions, they may change in backwards incompatible ways.

Summary ​

EntryDescription
CstAttribute
CstElseIfExpr
CstElseIfStat
CstEof
CstExpr
CstExprBinary
CstExprCall
CstExprConstantBool
CstExprConstantInteger
CstExprConstantNil
CstExprConstantNumber
CstExprConstantString
CstExprFunction
CstExprGlobal
CstExprGroup
CstExprIfElse
CstExprIndexExpr
CstExprIndexName
CstExprInstantiate
CstExprInterpString
CstExprLocal
CstExprTable
CstExprTypeAssertion
CstExprUnary
CstExprVarargs
CstFunctionTypeParameter
CstGenericType
CstGenericTypePack
CstLocal
CstNode
CstParseResult
CstStat
CstStatAssign
CstStatBlock
CstStatBreak
CstStatCompoundAssign
CstStatConst
CstStatContinue
CstStatDo
CstStatExpr
CstStatFor
CstStatForIn
CstStatFunction
CstStatIf
CstStatLocal
CstStatLocalFunction
CstStatRepeat
CstStatReturn
CstStatTypeAlias
CstStatTypeFunction
CstStatWhile
CstTableExprGeneralItem
CstTableExprItem
CstTableExprListItem
CstTableExprRecordItem
CstTableTypeItem
CstTableTypeItemIndexer
CstTableTypeItemProperty
CstType
CstTypeArray
CstTypeFunction
CstTypeGroup
CstTypeIntersection
CstTypeOptional
CstTypePack
CstTypePackExplicit
CstTypePackGeneric
CstTypePackVariadic
CstTypeReference
CstTypeSingletonBool
CstTypeSingletonString
CstTypeTable
CstTypeTypeof
CstTypeUnion
MultiLineComment
SingleLineComment
Span
Trivia
Whitespace

Types ​

CstAttribute ​

luau
type CstAttribute = cst.CstAttribute

CstElseIfExpr ​

luau
type CstElseIfExpr = cst.CstElseIfExpr

CstElseIfStat ​

luau
type CstElseIfStat = cst.CstElseIfStat

CstEof ​

luau
type CstEof = cst.CstEof

CstExpr ​

luau
type CstExpr = cst.CstExpr

CstExprBinary ​

luau
type CstExprBinary = cst.CstExprBinary

CstExprCall ​

luau
type CstExprCall = cst.CstExprCall

CstExprConstantBool ​

luau
type CstExprConstantBool = cst.CstExprConstantBool

CstExprConstantInteger ​

luau
type CstExprConstantInteger = cst.CstExprConstantInteger

CstExprConstantNil ​

luau
type CstExprConstantNil = cst.CstExprConstantNil

CstExprConstantNumber ​

luau
type CstExprConstantNumber = cst.CstExprConstantNumber

CstExprConstantString ​

luau
type CstExprConstantString = cst.CstExprConstantString

CstExprFunction ​

luau
type CstExprFunction = cst.CstExprFunction

CstExprGlobal ​

luau
type CstExprGlobal = cst.CstExprGlobal

CstExprGroup ​

luau
type CstExprGroup = cst.CstExprGroup

CstExprIfElse ​

luau
type CstExprIfElse = cst.CstExprIfElse

CstExprIndexExpr ​

luau
type CstExprIndexExpr = cst.CstExprIndexExpr

CstExprIndexName ​

luau
type CstExprIndexName = cst.CstExprIndexName

CstExprInstantiate ​

luau
type CstExprInstantiate = cst.CstExprInstantiate

CstExprInterpString ​

luau
type CstExprInterpString = cst.CstExprInterpString

CstExprLocal ​

luau
type CstExprLocal = cst.CstExprLocal

CstExprTable ​

luau
type CstExprTable = cst.CstExprTable

CstExprTypeAssertion ​

luau
type CstExprTypeAssertion = cst.CstExprTypeAssertion

CstExprUnary ​

luau
type CstExprUnary = cst.CstExprUnary

CstExprVarargs ​

luau
type CstExprVarargs = cst.CstExprVarargs

CstFunctionTypeParameter ​

luau
type CstFunctionTypeParameter = cst.CstFunctionTypeParameter

CstGenericType ​

luau
type CstGenericType = cst.CstGenericType

CstGenericTypePack ​

luau
type CstGenericTypePack = cst.CstGenericTypePack

CstLocal ​

luau
type CstLocal = cst.CstLocal

CstNode ​

luau
type CstNode = cst.CstNode

CstParseResult ​

luau
type CstParseResult = cst.CstParseResult

CstStat ​

luau
type CstStat = cst.CstStat

CstStatAssign ​

luau
type CstStatAssign = cst.CstStatAssign

CstStatBlock ​

luau
type CstStatBlock = cst.CstStatBlock

CstStatBreak ​

luau
type CstStatBreak = cst.CstStatBreak

CstStatCompoundAssign ​

luau
type CstStatCompoundAssign = cst.CstStatCompoundAssign

CstStatConst ​

luau
type CstStatConst = cst.CstStatConst

CstStatContinue ​

luau
type CstStatContinue = cst.CstStatContinue

CstStatDo ​

luau
type CstStatDo = cst.CstStatDo

CstStatExpr ​

luau
type CstStatExpr = cst.CstStatExpr

CstStatFor ​

luau
type CstStatFor = cst.CstStatFor

CstStatForIn ​

luau
type CstStatForIn = cst.CstStatForIn

CstStatFunction ​

luau
type CstStatFunction = cst.CstStatFunction

CstStatIf ​

luau
type CstStatIf = cst.CstStatIf

CstStatLocal ​

luau
type CstStatLocal = cst.CstStatLocal

CstStatLocalFunction ​

luau
type CstStatLocalFunction = cst.CstStatLocalFunction

CstStatRepeat ​

luau
type CstStatRepeat = cst.CstStatRepeat

CstStatReturn ​

luau
type CstStatReturn = cst.CstStatReturn

CstStatTypeAlias ​

luau
type CstStatTypeAlias = cst.CstStatTypeAlias

CstStatTypeFunction ​

luau
type CstStatTypeFunction = cst.CstStatTypeFunction

CstStatWhile ​

luau
type CstStatWhile = cst.CstStatWhile

CstTableExprGeneralItem ​

luau
type CstTableExprGeneralItem = cst.CstTableExprGeneralItem

CstTableExprItem ​

luau
type CstTableExprItem = cst.CstTableExprItem

CstTableExprListItem ​

luau
type CstTableExprListItem = cst.CstTableExprListItem

CstTableExprRecordItem ​

luau
type CstTableExprRecordItem = cst.CstTableExprRecordItem

CstTableTypeItem ​

luau
type CstTableTypeItem = cst.CstTableTypeItem

CstTableTypeItemIndexer ​

luau
type CstTableTypeItemIndexer = cst.CstTableTypeItemIndexer

CstTableTypeItemProperty ​

luau
type CstTableTypeItemProperty = cst.CstTableTypeItemProperty

CstType ​

luau
type CstType = cst.CstType

CstTypeArray ​

luau
type CstTypeArray = cst.CstTypeArray

CstTypeFunction ​

luau
type CstTypeFunction = cst.CstTypeFunction

CstTypeGroup ​

luau
type CstTypeGroup = cst.CstTypeGroup

CstTypeIntersection ​

luau
type CstTypeIntersection = cst.CstTypeIntersection

CstTypeOptional ​

luau
type CstTypeOptional = cst.CstTypeOptional

CstTypePack ​

luau
type CstTypePack = cst.CstTypePack

CstTypePackExplicit ​

luau
type CstTypePackExplicit = cst.CstTypePackExplicit

CstTypePackGeneric ​

luau
type CstTypePackGeneric = cst.CstTypePackGeneric

CstTypePackVariadic ​

luau
type CstTypePackVariadic = cst.CstTypePackVariadic

CstTypeReference ​

luau
type CstTypeReference = cst.CstTypeReference

CstTypeSingletonBool ​

luau
type CstTypeSingletonBool = cst.CstTypeSingletonBool

CstTypeSingletonString ​

luau
type CstTypeSingletonString = cst.CstTypeSingletonString

CstTypeTable ​

luau
type CstTypeTable = cst.CstTypeTable

CstTypeTypeof ​

luau
type CstTypeTypeof = cst.CstTypeTypeof

CstTypeUnion ​

luau
type CstTypeUnion = cst.CstTypeUnion

MultiLineComment ​

luau
type MultiLineComment = cst.MultiLineComment

SingleLineComment ​

luau
type SingleLineComment = cst.SingleLineComment

Span ​

luau
type Span = cst.Span

Trivia ​

luau
type Trivia = cst.Trivia

Whitespace ​

luau
type Whitespace = cst.Whitespace