PGFSharp : PGFSharp Namespace

Concr Class

The class for concrete syntaxes.

Syntax

public class Concr

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: PGFSharp
Assembly: PGFSharp (in PGFSharp.dll)
Assembly Versions: 3.8.0.0

Members

See Also: Inherited members from object.

Public Properties

[read-only]
Name string . Name of the grammar.
[read-only]
PGF PGF . Abstract grammar for this language.

Public Methods

BracketedLinearize (Expr) : Bracket
Get the bracketed (structured) linearization of an expression.
Linearize (Expr) : string
Linearize expression, i.e. produce a string in the concrete grammar from an expression in the abstract grammar.
LinearizeAll (Expr) : IEnumerable<string>
Get all possible linearization for an expression (see .(Expression)).
Parse (string, Type, Nullable<double>, Action, Action) : IEnumerable<Tuple<Expr, float>>
Parse given input string in the concrete grammar.
override
ToString () : string
Documentation for this section has not yet been entered.

Member Details

BracketedLinearize Method

Get the bracketed (structured) linearization of an expression.

Syntax

public Bracket BracketedLinearize (Expr e)

Parameters

e

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

Linearize Method

Linearize expression, i.e. produce a string in the concrete grammar from an expression in the abstract grammar.

Syntax

public string Linearize (Expr e)

Parameters

e

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

LinearizeAll Method

Get all possible linearization for an expression (see .(Expression)).

Syntax

public IEnumerable<string> LinearizeAll (Expr e)

Parameters

e

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

Name Property

Name of the 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

Parse Method

Parse given input string in the concrete grammar.

Syntax

[System.Runtime.CompilerServices.IteratorStateMachine(typeof(PGFSharp.Concr/<Parse>d__13))]
public IEnumerable<Tuple<Expr, float>> Parse (string str, Type cat, Nullable<double> heuristics, Action Callback1, Action Callback2)

Parameters

str
Input string to be parsed.
cat
Category (Type) to parse.
heuristics
Heuristic (see the GF C runtime docs).
Callback1
Callback function.
Callback2
Callback function.

Returns

Enumerates pairs of (abstract grammar) expressions and corresponding probability.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: PGFSharp
Assembly: PGFSharp (in PGFSharp.dll)
Assembly Versions: 3.8.0.0

PGF Property

Abstract grammar for this language.

Syntax

public PGF PGF { 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

ToString Method

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