Mercury library 1.0 Translation of CFG grammars into an object model (Bachelor's thesis).

- Main Page
- Packages
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

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< Symbol > | Nonterminals`[get, set]`
| List of nonterminal symbols. More...
IReadOnlyList< Symbol > | Terminals`[get, set]`
| List of terminal symbols. More...
IReadOnlyList< Rule > | Rules`[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
| get set

The epsilon symbol.

Epsilon

Definition at line 37 of file Grammar.cs.

IReadOnlyList<Symbol> Mercury.Syntax.Grammar.Nonterminals
| get set

List of nonterminal symbols.

Definition at line 23 of file Grammar.cs.

Symbol Mercury.Syntax.Grammar.Root
| get set

The root symbol.

Root

Definition at line 33 of file Grammar.cs.

IReadOnlyList<Rule> Mercury.Syntax.Grammar.Rules
| get set

List of rules.

Definition at line 29 of file Grammar.cs.

IReadOnlyList<Symbol> Mercury.Syntax.Grammar.Terminals
| get set

List of terminal symbols.

Definition at line 26 of file Grammar.cs.

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

- Mercury/Mercury/Syntax/Grammar.cs