#include <Lex.H>
Public Member Functions | |
Token () | |
void | Init (const Text &model, ShortId sid) |
void | Next () |
void | LexFlush () |
void | StartBytes () |
void | AppendChar (char c) |
void | UnAppendChar () |
void | EndBytes () |
char * | Bytes () |
Text | AsText () |
int | Length () |
void | TokenAssign (Token &tk) |
Public Attributes | |
TokenClass | tclass |
Expr | expr |
SrcLoc * | loc |
Private Member Functions | |
void | ScanIdNumber (char c) |
void | ScanText () |
bool | ScanPragma () |
void | ScanComment (char c) |
Token (const Token &) | |
Token & | operator= (const Token &) |
Private Attributes | |
char * | bytes |
int | bytesLength |
int | length |
|
Definition at line 53 of file Lex.C. References bytes, length, and NEW_PTRFREE_ARRAY. |
|
|
|
Definition at line 59 of file Lex.C. References bytes, bytesLength, length, and NEW_PTRFREE_ARRAY. Referenced by Next(), ScanIdNumber(), ScanPragma(), and ScanText(). |
|
Definition at line 84 of file Lex.H. References bytes. Referenced by Assign(), DelimPath(), EatArc(), Expect(), Expr4(), Expr5(), and Primary(). |
|
Definition at line 83 of file Lex.H. References bytes. Referenced by AtArc(), AtDelimiter(), AtToken(), Formals(), ScanIdNumber(), ScanText(), and Stmt(). |
|
Definition at line 82 of file Lex.H. Referenced by Next(), ScanIdNumber(), ScanPragma(), and ScanText(). |
|
Definition at line 551 of file Lex.C. References expr, SrcLoc::Init(), loc, tclass, and TkErr. Referenced by InitState(). |
|
Definition at line 85 of file Lex.H. References length. Referenced by ScanIdNumber(). |
|
Definition at line 544 of file Lex.C. References lexIn. Referenced by Parse(). |
|
Definition at line 431 of file Lex.C. References AppendChar(), bytes, SrcLoc::character, charNumber, SrcLoc::Copy(), EndBytes(), Error(), GetChar(), SrcLoc::line, lineNumber, loc, Basics::mutex::lock(), outputMu, ScanComment(), ScanIdNumber(), ScanPragma(), ScanText(), StartBytes(), tclass, TkEOF, TkLess, TkLessEq, TkSlash, UnAppendChar(), and Basics::mutex::unlock(). Referenced by NextToken(). |
|
|
|
Definition at line 144 of file Lex.C. References charNumber, Error(), SrcLoc::file, GetChar(), lineNumber, loc, Basics::mutex::lock(), outputMu, SrcLoc::shortId, and Basics::mutex::unlock(). Referenced by Next(). |
|
Definition at line 253 of file Lex.C. References AppendChar(), Bytes(), SrcLoc::Copy(), EndBytes(), Error(), expr, GetChar(), Length(), loc, Basics::mutex::lock(), NEW_CONSTR, outputMu, tclass, TkId, TkNumber, and Basics::mutex::unlock(). Referenced by Next(). |
|
Definition at line 191 of file Lex.C. References AppendChar(), bytes, SrcLoc::Copy(), EndBytes(), Error(), GetChar(), length, loc, Basics::mutex::lock(), outputMu, StartBytes(), tclass, TkPragma, and Basics::mutex::unlock(). Referenced by Next(). |
|
Definition at line 334 of file Lex.C. References AppendChar(), Bytes(), SrcLoc::Copy(), EndBytes(), Error(), expr, GetChar(), loc, Basics::mutex::lock(), NEW_CONSTR, outputMu, tclass, TkString, and Basics::mutex::unlock(). Referenced by Next(). |
|
Definition at line 78 of file Lex.H. Referenced by Next(), and ScanPragma(). |
|
Definition at line 70 of file Lex.C. References bytes, bytesLength, expr, length, loc, and tclass. Referenced by EatArc(), EatDelimiter(), EatName(), EatPragma(), EatToken(), and NextToken(). |
|
Definition at line 80 of file Lex.H. References length. Referenced by Next(). |
|
Definition at line 90 of file Lex.H. Referenced by AppendChar(), AsText(), Bytes(), EndBytes(), Next(), ScanPragma(), StartBytes(), Token(), and TokenAssign(). |
|
Definition at line 91 of file Lex.H. Referenced by AppendChar(), and TokenAssign(). |
|
Definition at line 71 of file Lex.H. Referenced by EatName(), GetName(), Init(), Primary(), ScanIdNumber(), ScanText(), and TokenAssign(). |
|
Definition at line 92 of file Lex.H. Referenced by AppendChar(), EndBytes(), Length(), ScanPragma(), StartBytes(), Token(), TokenAssign(), and UnAppendChar(). |
|
Definition at line 72 of file Lex.H. Referenced by Actuals(), BindElem(), Block(), Control(), ConvertToBindElem(), EatArc(), Expr1(), Expr2(), Expr3(), Expr4(), Expr5(), Expr6(), Expr7(), Expr8(), Expression(), FileItem(), FileList(), Files(), Formals(), Func(), Imports(), IncItem(), IncList(), Init(), Iterate(), Next(), PError(), Primary(), ScanComment(), ScanIdNumber(), ScanPragma(), ScanText(), TokenAssign(), and Type(). |
|
Definition at line 70 of file Lex.H. Referenced by AtArc(), AtDelimiter(), AtToken(), BindElem(), Block(), EatPragma(), Expect(), Expr4(), Init(), Next(), Primary(), ScanIdNumber(), ScanPragma(), ScanText(), and TokenAssign(). |