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
Public Member Functions | Properties | List of all members
Mercury.Syntax.IParser Interface Reference

Creates a derivation tree from the list of input tokens More...

Inheritance diagram for Mercury.Syntax.IParser:

## Public Member Functions
ParserResult | Parse (IList< Token > tokens)
| Creates a trees (in Mercury.Syntax.ParserResult) from the tokens More...
ParserResult | Parse (IList< Token > tokens, IList< Rule > scanresult)
| Creates a trees (in Mercury.Syntax.ParserResult) from the tokens with the support of Mercury.Syntax.IScanner generated rules. More...

## Properties
Grammar | Grammar`[get]`
| The Grammar used to build the tree. More...

## Detailed Description

Creates a derivation tree from the list of input tokens

Definition at line 15 of file Parser.cs.

## Member Function Documentation

ParserResult Mercury.Syntax.IParser.Parse | ( | IList< Token > | tokens | ) |

Creates a trees (in Mercury.Syntax.ParserResult) from the tokens

Parameters

  tokens | The tokens.

Returns
  Parser result containing trees.

Implemented in Mercury.Syntax.ChartParser.

ParserResult Mercury.Syntax.IParser.Parse | ( | IList< Token > | tokens,
|  | IList< Rule > | scanresult
| ) |  |

Creates a trees (in Mercury.Syntax.ParserResult) from the tokens with the support of Mercury.Syntax.IScanner generated rules.

Parameters

  tokens | The tokens.
  scanresult | The rules from scanner

Returns

Implemented in Mercury.Syntax.ChartParser.

## Property Documentation

Grammar Mercury.Syntax.IParser.Grammar
| get

The Grammar used to build the tree.

Definition at line 18 of file Parser.cs.

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

- Mercury/Mercury/Syntax/Parser.cs