C-minor v0.0

Tokenizer.IsIdentifier Method

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

Checks if the current token is a particular identifier

public bool IsIdentifier(string name);

Parameters

string name

The name of the identifier to check for

Returns

bool

True if the current token is an identifier with matching name