C# Class LexicalAnalysis.FSACharConst

FSACharConst ============ The FSA for scanning a C character constant. Upon finish, we can retrive a token of character. A character constant can either be represented by * '[char]' or * L'[char]' The character inside the quotes is read by FSAChar. Note that if the inner character is a single quote, it needs to be escaped.
Inheritance: FSA
Mostra file Open project: phisiart/C-Compiler

Public Methods

Method Description
FSACharConst ( ) : System
GetStatus ( ) : FSAStatus
ReadChar ( Char ch ) : void
ReadEOF ( ) : void
Reset ( ) : void
RetrieveToken ( ) : Token

Method Details

FSACharConst() public method

public FSACharConst ( ) : System
return System

GetStatus() public method

public GetStatus ( ) : FSAStatus
return FSAStatus

ReadChar() public method

public ReadChar ( Char ch ) : void
ch Char
return void

ReadEOF() public method

public ReadEOF ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

RetrieveToken() public method

public RetrieveToken ( ) : Token
return Token