Свойство | Тип | Описание | |
---|---|---|---|
Advance | void | ||
AdvanceOp | void | ||
AdvanceOp | void | ||
Backup | void | ||
Check | bool | ||
CheckBuiltin | bool | ||
CheckIdent | bool | ||
CheckOp | bool | ||
CheckOp | bool | ||
CheckOp | bool | ||
Expect | bool | ||
ExpectIdent | |||
ExpectOp | bool | ||
ExpectOp | bool | ||
GetIdent | string | ||
GetLastSpan | |||
GetOp | string | ||
GetSpan | |||
NextCheck | bool | ||
ParseBlock | List |
||
ParseCommaList | List |
||
ParseExpr | NodeExpr | ||
ParseFn | |||
ParseFnBody | FnBody | ||
ParseFnDecl | void | ||
ParseInfix | NodeExpr | ||
ParseInvoke | NodeExpr | ||
ParseLet | |||
ParseMods | Modifiers | ||
ParseParameter | |||
ParseParameterList | ParameterList | ||
ParsePrimaryExpr | NodeExpr | ||
ParseRet | |||
ParseTy | Spanned |
||
ParseTypeDef | |||
Peek |
Метод | Описание | |
---|---|---|
ParseTopLevel ( ) : |
This can return any top level node, but should only like statements.
|
|
ParserState ( |
Метод | Описание | |
---|---|---|
Advance ( ) : void | ||
AdvanceOp ( TokenType opType ) : void | ||
AdvanceOp ( string image ) : void | ||
Backup ( ) : void | ||
Check ( TokenType type ) : bool | ||
CheckBuiltin ( ) : bool | ||
CheckIdent ( ) : bool | ||
CheckOp ( ) : bool | ||
CheckOp ( TokenType opType ) : bool | ||
CheckOp ( string image ) : bool | ||
Expect ( TokenType type, string message ) : bool | ||
ExpectIdent ( string format ) : |
||
ExpectOp ( TokenType opType, string message ) : bool | ||
ExpectOp ( string image, string message ) : bool | ||
GetIdent ( ) : string | ||
GetLastSpan ( ) : |
||
GetOp ( ) : string | ||
GetSpan ( ) : |
||
NextCheck ( TokenType type ) : bool | ||
ParseBlock ( ) : List |
||
ParseCommaList ( bool &trailingComma ) : List |
||
ParseExpr ( bool isEnclosed = false, bool doError = true ) : NodeExpr | ||
ParseFn ( Modifiers mods ) : |
This can return either a NodeFN or a NodeFnDecl, depending on the precense of a body. This can still return a NodeFn for extern fns, it'll just end up being an error later (unless I do some kinda neat thing with bodied externs?)
|
|
ParseFnBody ( ) : FnBody | ||
ParseFnDecl ( |
This starts at the 'fn' keyword and reads until the return type.
|
|
ParseInfix ( NodeExpr left, bool isEnclosed ) : NodeExpr | ||
ParseInvoke ( NodeExpr node, bool isEnclosed ) : NodeExpr | ||
ParseLet ( ) : |
||
ParseMods ( ) : Modifiers | ||
ParseParameter ( ) : |
||
ParseParameterList ( ) : ParameterList |
This expects the arguments to be surrounded by pipes.
|
|
ParsePrimaryExpr ( bool isEnclosed, bool doError = true ) : NodeExpr | ||
ParseRet ( ) : |
||
ParseTy ( ) : Spanned |
||
ParseTypeDef ( Modifiers mods ) : |
||
Peek ( int offset ) : |
public ParserState ( |
||
log | ||
tokens | ||
fileName | string | |
Результат | System.Collections.Generic |