Tokenizer.Unexpected Method
Assembly: Topten.Cminor.Compiler.dll
Namespace: Topten.Cminor.Lexical
Declaring Type: Tokenizer
Overloads
Unexpected() | Creates a syntax error CodeException for the current token |
Unexpected(string) | Creates a syntax error CodeException for the current token, along with a message describing what was expected |
Unexpected()
Creates a syntax error CodeException for the current token
public Topten.Cminor.CodeException Unexpected();
Returns
Topten.Cminor.CodeException | The created exception |
Unexpected(string)
Creates a syntax error CodeException for the current token, along with a message describing what was expected
public Topten.Cminor.CodeException Unexpected(string expected);
Parameters
string expected | The expected token message |
Returns
Topten.Cminor.CodeException | The created exception |