The class for PGF grammars.
See Also: Inherited members from object.
[read-only] | Categories | IEnumerable<string> . All categories in the abstract grammar. |
[read-only] | Functions | IEnumerable<string> . All functions in the abstract grammar. |
[read-only] | Languages | Dictionary<string, Concr> . All concrete grammars in the language. |
[read-only] | Name | string . Name of the abstract grammar. |
[read-only] | StartCat | Type . Default category of the grammar. |
|
Compute
(Expr)Normalizes an expression to its normal form by using the 'def' rules in the grammar. |
|
|
FunctionByCategory
(string)Returns a list with all functions with a given return category. |
|
|
FunctionType
(string)Returns the type of the function with the given name. |
|
|
GenerateAll
(Type)Returns an enumerable over the set of all expression in the given category. The expressions are enumerated in decreasing probability order. |
|
static
|
ReadPGF
(string)Reads a grammar with the specified file path. |
|
override
|
ToString
()Documentation for this section has not yet been entered. |
All categories in the abstract grammar.Syntax
public IEnumerable<string> Categories { get; }Value
Documentation for this section has not yet been entered.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: PGFSharp
Assembly: PGFSharp (in PGFSharp.dll)
Assembly Versions: 3.8.0.0
Normalizes an expression to its normal form by using the 'def' rules in the grammar.Syntax
Parameters
- expr
- the original expression.
Returns
the normalized expression.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: PGFSharp
Assembly: PGFSharp (in PGFSharp.dll)
Assembly Versions: 3.8.0.0
Returns a list with all functions with a given return category.Syntax
public IEnumerable<string> FunctionByCategory (string catName)Parameters
- catName
- The name of the return category.
Returns
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: PGFSharp
Assembly: PGFSharp (in PGFSharp.dll)
Assembly Versions: 3.8.0.0
All functions in the abstract grammar.Syntax
public IEnumerable<string> Functions { get; }Value
Documentation for this section has not yet been entered.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: PGFSharp
Assembly: PGFSharp (in PGFSharp.dll)
Assembly Versions: 3.8.0.0
Returns the type of the function with the given name.Syntax
Parameters
- funName
- The name of the function.
Returns
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: PGFSharp
Assembly: PGFSharp (in PGFSharp.dll)
Assembly Versions: 3.8.0.0
Returns an enumerable over the set of all expression in the given category. The expressions are enumerated in decreasing probability order.Syntax
public IEnumerable<Expr> GenerateAll (Type cat)Parameters
- cat
- the start category.
Returns
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: PGFSharp
Assembly: PGFSharp (in PGFSharp.dll)
Assembly Versions: 3.8.0.0
All concrete grammars in the language.Syntax
public Dictionary<string, Concr> Languages { get; }Value
Documentation for this section has not yet been entered.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: PGFSharp
Assembly: PGFSharp (in PGFSharp.dll)
Assembly Versions: 3.8.0.0
Name of the abstract grammar.Syntax
public string Name { get; }Value
Documentation for this section has not yet been entered.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: PGFSharp
Assembly: PGFSharp (in PGFSharp.dll)
Assembly Versions: 3.8.0.0
Reads a grammar with the specified file path.Syntax
Parameters
- fn
- The path to the file.
Returns
an object representing the grammar in memory.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: PGFSharp
Assembly: PGFSharp (in PGFSharp.dll)
Assembly Versions: 3.8.0.0
Default category of the grammar.Syntax
public Type StartCat { get; }Value
Documentation for this section has not yet been entered.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: PGFSharp
Assembly: PGFSharp (in PGFSharp.dll)
Assembly Versions: 3.8.0.0
Documentation for this section has not yet been entered.Syntax
public override string ToString ()Returns
Documentation for this section has not yet been entered.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: PGFSharp
Assembly: PGFSharp (in PGFSharp.dll)
Assembly Versions: 3.8.0.0