Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Lex.C File Reference

#include "ModelState.H"
#include "Lex.H"
#include "Location.H"
#include "Expr.H"
#include "Val.H"
#include "Err.H"
#include <Table.H>
#include <iostream>

Go to the source code of this file.

Functions

char GetChar ()
void LexInit ()

Variables

SrcLocnoLoc = NEW(SrcLoc)
istream * lexIn
char lookAhead1
char lookAhead2
int lookaheads
int lineNumber
int charNumber
Text TokenNames [TkIllegal+1]


Function Documentation

char GetChar  ) 
 

Definition at line 84 of file Lex.C.

References charNumber, InternalError(), lexIn, lineNumber, Basics::mutex::lock(), lookAhead1, lookAhead2, lookaheads, outputMu, and Basics::mutex::unlock().

Referenced by Token::Next(), Token::ScanComment(), Token::ScanIdNumber(), Token::ScanPragma(), and Token::ScanText().

void LexInit  ) 
 

Definition at line 581 of file Lex.C.

References TkAnd, TkBackSlash, TkBang, TkBinding, TkBool, TkColon, TkComma, TkDo, TkDollar, TkElse, TkEqEq, TkEqual, TkErr, TkFalse, TkFiles, TkForeach, TkFrom, TkFunction, TkGreater, TkGreaterEq, TkIf, TkImplies, TkImport, TkIn, TkInt, TkLBrace, TkLBracket, TkLess, TkLessEq, TkList, TkLParen, TkMinus, TkNotEq, TkOr, TkPercent, TkPlus, TkPlusPlus, TkQuery, TkRBrace, TkRBracket, TkReturn, TkRParen, TkSemicolon, TkSlash, TkStar, TkText, TkThen, TkTrue, TkType, TkUnderscore, and TkValue.

Referenced by StartEval().


Variable Documentation

int charNumber
 

Definition at line 47 of file Lex.C.

Referenced by GetChar(), ModelStateInit(), Token::Next(), and Token::ScanComment().

istream* lexIn
 

Definition at line 44 of file Lex.C.

Referenced by GetChar(), Token::LexFlush(), and ModelStateInit().

int lineNumber
 

Definition at line 47 of file Lex.C.

Referenced by GetChar(), ModelStateInit(), Token::Next(), and Token::ScanComment().

char lookAhead1
 

Definition at line 45 of file Lex.C.

Referenced by GetChar().

char lookAhead2
 

Definition at line 45 of file Lex.C.

Referenced by GetChar().

int lookaheads
 

Definition at line 46 of file Lex.C.

Referenced by GetChar(), and ModelStateInit().

SrcLoc* noLoc = NEW(SrcLoc)
 

Definition at line 41 of file Lex.C.

Referenced by Interpret().

Text TokenNames[TkIllegal+1]
 

Initial value:

  { "binding", "bool", "do", "else", "ERR", "FALSE", "files",
    "foreach", "from", "function", "if", "in", "import", "int",
    "list", "return", "text", "then", "TRUE", "type", "value",

    "Id", "Number", "String",

    "And", "EqEq", "NotEq", "GreaterEq", "Implies", "LessEq", "Or",
    "PlusPlus",

    "BackSlash", "Bang", "Colon", "Comma", "Dollar", "Equal", "Greater",
    "Less", "Minus", "Percent", "Plus", "Query", "Semicolon", "Slash",
    "Star", "Underscore",

    "LBrace", "RBrace", "LBracket", "RBracket", "LParen", "RParen",
    
    "Pragma",

    "End of File", "Illegal Token"
 }

Definition at line 560 of file Lex.C.

Referenced by Expect().


Generated on Mon May 8 00:49:02 2006 for Vesta by  doxygen 1.4.2