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 | 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:

## Public Member Functions
| BasicScanner (BasicScannerMap map)
| Initializes a new instance of the BasicScanner class. More...
IEnumerable< Rule > | Scan (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

  map | The map of types

Exceptions

  System.ArgumentNullException | When 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

  tokens | Input 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:

- Mercury/Mercury/Syntax/Scanner.cs