C# Class Microsoft.Fast.AST.FastPgm

The top level Ast. Represents a Fast program.
Inheritance: Ast
Afficher le fichier Open project: AutomataDotNet/Automata Class Usage Examples

Méthodes publiques

Свойство Type Description
defs List

Méthodes publiques

Méthode Description
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

Method Details

Add() public méthode

public Add ( Def def ) : void
def Def
Résultat void

Add() public méthode

public Add ( IEnumerable moredefs ) : void
moredefs IEnumerable
Résultat void

FindAlphabetDef() public méthode

public FindAlphabetDef ( FastToken alph ) : AlphabetDef
alph FastToken
Résultat AlphabetDef

FindDef() public méthode

public FindDef ( FastToken id ) : Def
id FastToken
Résultat Def

FindEnumDef() public méthode

public FindEnumDef ( FastToken enu ) : EnumDef
enu FastToken
Résultat EnumDef

FindFunctionDef() public méthode

public FindFunctionDef ( FastToken func ) : FunctionDef
func FastToken
Résultat FunctionDef

GetConstantSort() public méthode

public GetConstantSort ( FastToken id ) : FastSort
id FastToken
Résultat FastSort

Parse() public static méthode

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
Résultat FastPgm

Parse() public static méthode

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
Résultat FastPgm

PrettyPrint() public méthode

public PrettyPrint ( StringBuilder sb ) : void
sb StringBuilder
Résultat void

Typecheck() public méthode

public Typecheck ( ) : void
Résultat void

Property Details

defs public_oe property

public List defs
Résultat List