|
Mercury library
1.0
Translation of CFG grammars into an object model (Bachelor's thesis).
|
Contains mapping between TokenType and Mercury.Syntax.Mapping of Mercury.Syntax.BasicScanner. More...
Public Member Functions | |
| BasicScannerMap (IDictionary< TokenType, Mapping > map) | |
| Creates a new instance of Mercury.Syntax.BasicScannerMap. More... | |
| Mapping | GetMapping (TokenType ttype) |
| Returns the mapping for a given TokenType. More... | |
Static Public Member Functions | |
| static BasicScannerMap | SingleMap (Mapping custom) |
| Creates a mapping for all TokenTypes to custom Mapping More... | |
Properties | |
| static BasicScannerMap | Identity [get] |
| The Identity map (Symbol to Symbol, Number as Number etc.) More... | |
| static BasicScannerMap | NumberOrString [get] |
| Maps Number to Number and other TokenTypes to String More... | |
| static BasicScannerMap | All [get] |
| Maps any token type to everything More... | |
| Mapping | this[TokenType ttype] [get] |
Contains mapping between TokenType and Mercury.Syntax.Mapping of Mercury.Syntax.BasicScanner.
Definition at line 132 of file Scanner.cs.
Creates a new instance of Mercury.Syntax.BasicScannerMap.
| map | The map between TokenType and Mapping |
| System.ArgumentNullException | When map is null |
Definition at line 145 of file Scanner.cs.
Returns the mapping for a given TokenType.
| ttype | The token type |
Definition at line 209 of file Scanner.cs.
|
static |
Creates a mapping for all TokenTypes to custom Mapping
| custom | The custom mapping |
Definition at line 188 of file Scanner.cs.
|
staticget |
Maps any token type to everything
Definition at line 176 of file Scanner.cs.
|
staticget |
The Identity map (Symbol to Symbol, Number as Number etc.)
Definition at line 158 of file Scanner.cs.
|
staticget |
Maps Number to Number and other TokenTypes to String
Definition at line 167 of file Scanner.cs.
Definition at line 200 of file Scanner.cs.
1.8.7