Mercury library  1.0
Translation of CFG grammars into an object model (Bachelor's thesis).
 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:
Mercury.Syntax.ChartParser

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
tokensThe 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
tokensThe tokens.
scanresultThe 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: