C# 클래스 Microsoft.Fast.AST.FastPgm

The top level Ast. Represents a Fast program.
상속: Ast
파일 보기 프로젝트 열기: AutomataDotNet/Automata 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
defs List

공개 메소드들

메소드 설명
Add ( Def def ) : void
Add ( IEnumerable moredefs ) : void
FindAlphabetDef ( FastToken alph ) : AlphabetDef
FindDef ( FastToken id ) : Def
FindEnumDef ( FastToken enu ) : EnumDef
FindFunctionDef ( FastToken func ) : FunctionDef
GetConstantSort ( FastToken id ) : FastSort
Parse ( Stream source, bool typecheck = true ) : FastPgm

Parses a fast program from a source stream. Calls Parser.ParseFromStream.

Parse ( string source, bool typecheck = true ) : FastPgm

Parses a fast program from a source string. Calls Parser.ParseFromString.

PrettyPrint ( StringBuilder sb ) : void
Typecheck ( ) : void

메소드 상세

Add() 공개 메소드

public Add ( Def def ) : void
def Def
리턴 void

Add() 공개 메소드

public Add ( IEnumerable moredefs ) : void
moredefs IEnumerable
리턴 void

FindAlphabetDef() 공개 메소드

public FindAlphabetDef ( FastToken alph ) : AlphabetDef
alph FastToken
리턴 AlphabetDef

FindDef() 공개 메소드

public FindDef ( FastToken id ) : Def
id FastToken
리턴 Def

FindEnumDef() 공개 메소드

public FindEnumDef ( FastToken enu ) : EnumDef
enu FastToken
리턴 EnumDef

FindFunctionDef() 공개 메소드

public FindFunctionDef ( FastToken func ) : FunctionDef
func FastToken
리턴 FunctionDef

GetConstantSort() 공개 메소드

public GetConstantSort ( FastToken id ) : FastSort
id FastToken
리턴 FastSort

Parse() 공개 정적인 메소드

Parses a fast program from a source stream. Calls Parser.ParseFromStream.
public static Parse ( Stream source, bool typecheck = true ) : FastPgm
source Stream given source stream
typecheck bool if false then typechecking is omitted
리턴 FastPgm

Parse() 공개 정적인 메소드

Parses a fast program from a source string. Calls Parser.ParseFromString.
public static Parse ( string source, bool typecheck = true ) : FastPgm
source string given source string
typecheck bool if false then typechecking is omitted
리턴 FastPgm

PrettyPrint() 공개 메소드

public PrettyPrint ( StringBuilder sb ) : void
sb StringBuilder
리턴 void

Typecheck() 공개 메소드

public Typecheck ( ) : void
리턴 void

프로퍼티 상세

defs 공개적으로 프로퍼티

public List defs
리턴 List