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 | List of all members
Mercury.Syntax.BasicScanner Class Reference

Generates four Nonterminals @Symbol, @Keyword, @Number and @String based on the given map and types of input tokens. More...

Inheritance diagram for Mercury.Syntax.BasicScanner:
Mercury.Syntax.IScanner

Public Member Functions

 BasicScanner (BasicScannerMap map)
 Initializes a new instance of the BasicScanner class. More...
 
IEnumerable< RuleScan (IEnumerable< Token > tokens)
 Scans input tokens and creates additional rules for parsing. More...
 

Detailed Description

Generates four Nonterminals @Symbol, @Keyword, @Number and @String based on the given map and types of input tokens.

Definition at line 229 of file Scanner.cs.

Constructor & Destructor Documentation

Mercury.Syntax.BasicScanner.BasicScanner ( BasicScannerMap  map)

Initializes a new instance of the BasicScanner class.

Parameters
mapThe map of types
Exceptions
System.ArgumentNullExceptionWhen map is null

Definition at line 245 of file Scanner.cs.

Member Function Documentation

IEnumerable<Rule> Mercury.Syntax.BasicScanner.Scan ( IEnumerable< Token tokens)

Scans input tokens and creates additional rules for parsing.

Parameters
tokensInput tokens.
Returns
Enumeration of additional rules.

Implements Mercury.Syntax.IScanner.

Definition at line 256 of file Scanner.cs.


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