C-minor v0.0

Tokenizer.CheckToken Method

Assembly: Topten.Cminor.Compiler.dll
Namespace: Topten.Cminor.Lexical
Declaring Type: Tokenizer

Checks for a specific token and throws a CodeException if not

public void CheckToken(Token token, string suffix = null);

Parameters

Token token

The token to check for

string suffix = null

A suffix string to be included in the exception