Mercury library  1.0
Translation of CFG grammars into an object model (Bachelor's thesis).
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Properties | List of all members
Mercury.Syntax.Grammar Class Reference

Represents a Context-Free Grammar. This is an immutable class, to create a grammar use Mercury.Syntax.GrammarBuilder. More...

Inherited by Mercury.Syntax.ExtendedGrammar.

Properties

IReadOnlyList< SymbolNonterminals [get, set]
 List of nonterminal symbols. More...
 
IReadOnlyList< SymbolTerminals [get, set]
 List of terminal symbols. More...
 
IReadOnlyList< RuleRules [get, set]
 List of rules. More...
 
Symbol Root [get, set]
 The root symbol. More...
 
Symbol Epsilon [get, set]
 The epsilon symbol. More...
 

Detailed Description

Represents a Context-Free Grammar. This is an immutable class, to create a grammar use Mercury.Syntax.GrammarBuilder.

Definition at line 18 of file Grammar.cs.

Property Documentation

Symbol Mercury.Syntax.Grammar.Epsilon
getset

The epsilon symbol.

Epsilon

Definition at line 37 of file Grammar.cs.

IReadOnlyList<Symbol> Mercury.Syntax.Grammar.Nonterminals
getset

List of nonterminal symbols.

Definition at line 23 of file Grammar.cs.

Symbol Mercury.Syntax.Grammar.Root
getset

The root symbol.

Root

Definition at line 33 of file Grammar.cs.

IReadOnlyList<Rule> Mercury.Syntax.Grammar.Rules
getset

List of rules.

Definition at line 29 of file Grammar.cs.

IReadOnlyList<Symbol> Mercury.Syntax.Grammar.Terminals
getset

List of terminal symbols.

Definition at line 26 of file Grammar.cs.


The documentation for this class was generated from the following file: