Options
All
  • Public
  • Public/Protected
  • All
Menu

Class asCParser

Hierarchy

  • asCParser

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected checkValidTypes

checkValidTypes: boolean = false

Protected config

config: ParserConfig

Protected errorWhileParsing

errorWhileParsing: boolean = false

Protected isParsingAppInterface

isParsingAppInterface: boolean = false

Protected isSyntaxError

isSyntaxError: boolean = false

Protected lastToken

lastToken: sToken | null = null

Protected logs

logs: Log[] = []

Protected script

script: asCScriptCode | null = null

Protected scriptNode

scriptNode: asCScriptNode | null = null

Protected sourcePos

sourcePos: number = 0

Protected tempString

tempString: string = ""

Protected tokenizer

tokenizer: asCTokenizer

Methods

Protected CheckTemplateType

  • CheckTemplateType(t: sToken): boolean

Protected CreateNode

Protected Error

  • Error(text: string, token: sToken): void

Protected ExpectedOneOf

  • ExpectedOneOf(tokens: number[], count: number): string
  • ExpectedOneOf(tokens: string[], count: number): string

Protected ExpectedToken

  • ExpectedToken(token: string): string

Protected ExpectedTokens

  • ExpectedTokens(t1: string, t2: string): string

GetScriptNode

Protected GetToken

Protected IdentifierIs

  • IdentifierIs(t: sToken, str: string): null | false | true

Protected Info

  • Info(text: string, token: sToken): void

Protected InsteadFound

  • InsteadFound(t: sToken): string

Protected IsAssignOperator

  • IsAssignOperator(tokenType: number): boolean

Protected IsConstant

  • IsConstant(tokenType: number): boolean

Protected IsDataType

  • IsDataType(token: sToken): boolean

Protected IsFuncDecl

  • IsFuncDecl(isMethod: boolean): boolean

Protected IsFunctionCall

  • IsFunctionCall(): boolean

Protected IsLambda

  • IsLambda(): boolean

Protected IsOperator

  • IsOperator(tokenType: number): boolean

Protected IsPostOperator

  • IsPostOperator(tokenType: number): boolean

Protected IsPreOperator

  • IsPreOperator(tokenType: number): boolean

Protected IsRealType

  • IsRealType(tokenType: number): boolean

Protected IsTemplateType

  • IsTemplateType(str: string): boolean

Protected IsType

Protected IsVarDecl

  • IsVarDecl(): boolean

Protected IsVirtualPropertyDecl

  • IsVirtualPropertyDecl(): boolean

Protected ParseArgList

Protected ParseAssignOperator

Protected ParseAssignment

Protected ParseBreak

Protected ParseCase

Protected ParseCast

Protected ParseClass

Protected ParseCondition

Protected ParseConstant

Protected ParseConstructCall

Protected ParseContinue

ParseDataType

  • ParseDataType(in_script: asCScriptCode, in_isReturnType: boolean): number
  • ParseDataType(allowVariableType?: undefined | false | true, allowAuto?: undefined | false | true): asCScriptNode

Protected ParseDeclaration

  • ParseDeclaration(isClassProp?: boolean, isGlobalVar?: boolean): asCScriptNode

Protected ParseDoWhile

Protected ParseEnumeration

Protected ParseExprOperator

Protected ParseExprPostOp

Protected ParseExprPreOp

Protected ParseExprTerm

Protected ParseExprValue

ParseExpression

Protected ParseExpressionStatement

Protected ParseFor

Protected ParseFuncDef

Protected ParseFunction

Protected ParseFunctionCall

ParseFunctionDefinition

  • ParseFunctionDefinition(): asCScriptNode
  • ParseFunctionDefinition(in_script: asCScriptCode, in_expectListPattern: boolean): number

Protected ParseIdentifier

Protected ParseIf

Protected ParseImport

Protected ParseInitList

Protected ParseInterface

Protected ParseInterfaceMethod

Protected ParseLambda

Protected ParseListPattern

Protected ParseMethodAttributes

Protected ParseMixin

Protected ParseNamespace

Protected ParseOneOf

Protected ParseOptionalScope

Protected ParseParameterList

ParsePropertyDeclaration

Protected ParseRealType

Protected ParseReturn

ParseScript

Protected ParseStatement

ParseStatementBlock

Protected ParseStringConstant

Protected ParseSwitch

Protected ParseTemplTypeList

  • ParseTemplTypeList(node: asCScriptNode, required?: boolean): boolean

ParseTemplateDecl

Protected ParseToken

Protected ParseTryCatch

Protected ParseType

  • ParseType(allowConst: boolean, allowVariableType?: boolean, allowAuto?: boolean): asCScriptNode

Protected ParseTypeMod

Protected ParseTypedef

ParseVarInit

Protected ParseVariableAccess

Protected ParseVirtualPropertyDecl

  • ParseVirtualPropertyDecl(isMethod: boolean, isInterface: boolean): asCScriptNode

Protected ParseWhile

Protected Reset

  • Reset(): void

Protected RewindTo

  • RewindTo(token: sToken): void

Protected SetPos

  • SetPos(pos: number): void

Protected SuperficiallyParseExpression

Protected SuperficiallyParseStatementBlock

Protected SuperficiallyParseVarInit

Protected Warning

  • Warning(text: string, token: sToken): void

getLogs

  • getLogs(): Log[]

Generated using TypeDoc