Lexer Class Reference
#include <lexer.h>
Collaboration diagram for Lexer:

Constructor & Destructor Documentation
|
Definition at line 109 of file lexer.cpp. References LexerData::beginScope(), d, m_tokens, and reset(). |
|
Definition at line 124 of file lexer.cpp. References d, and LexerData::endScope(). |
|
|
Member Function Documentation
|
Definition at line 505 of file lexer.cpp. References m_words. Referenced by Driver::setupLexer(). |
|
Definition at line 755 of file lexer.h. References m_endPtr, m_ptr, and m_source. Referenced by findOperator2(), findOperator3(), handleDirective(), macroAddSubtract(), macroBoolAnd(), macroBoolOr(), macroBoolXor(), macroEquality(), macroLogicalAnd(), macroLogicalOr(), macroMultiplyDivide(), macroPrimary(), macroRelational(), nextToken(), processDefine(), processInclude(), readArgument(), readCharLiteral(), readIdentifier(), readLineComment(), readMultiLineComment(), readNumberLiteral(), readStringLiteral(), readWhiteSpaces(), and tokenize(). |
|
Definition at line 235 of file lexer.h. Referenced by Driver::addDependence(), and nextToken(). |
|
Definition at line 234 of file lexer.h. Referenced by Driver::addDependence(), and nextToken(). |
|
Definition at line 750 of file lexer.h. Referenced by macroDefined(), macroLogicalAnd(), nextToken(), processDefine(), processInclude(), processUndef(), readCharLiteral(), readLineComment(), readMultiLineComment(), and tokenize(). |
|
Definition at line 765 of file lexer.h. References m_ptr. Referenced by skip(). |
|
Definition at line 696 of file lexer.h. References currentChar(), m_endPtr, m_ptr, and peekChar(). Referenced by nextToken(). |
|
Definition at line 680 of file lexer.h. References currentChar(), m_endPtr, m_ptr, and peekChar(). Referenced by nextToken(). |
|
Definition at line 196 of file lexer.cpp. References Token::getStartPosition(). Referenced by Parser::reportError(). |
|
Definition at line 565 of file lexer.cpp. References currentChar(), m_inPreproc, m_skipping, nextToken(), preprocessorEnabled(), processDefine(), processElif(), processElse(), processEndif(), processIf(), processIfdef(), processIfndef(), processInclude(), processUndef(), setPreprocessorEnabled(), setSkipWordsEnabled(), skip(), and skipWordsEnabled(). Referenced by nextToken(). |
|
|
|
Definition at line 884 of file lexer.cpp. References currentChar(), macroMultiplyDivide(), nextChar(), and readWhiteSpaces(). Referenced by macroRelational(). |
|
Definition at line 935 of file lexer.cpp. References currentChar(), macroEquality(), nextChar(), peekChar(), and readWhiteSpaces(). Referenced by macroBoolXor(). |
|
Definition at line 957 of file lexer.cpp. References currentChar(), macroBoolXor(), nextChar(), peekChar(), and readWhiteSpaces(). Referenced by macroLogicalAnd(). |
|
Definition at line 946 of file lexer.cpp. References currentChar(), macroBoolAnd(), nextChar(), and readWhiteSpaces(). Referenced by macroBoolOr(). |
|
Definition at line 621 of file lexer.cpp. References currentPosition(), Driver::hasMacro(), m_driver, m_source, readIdentifier(), and readWhiteSpaces(). Referenced by processIf(), processIfdef(), and processIfndef(). |
|
Definition at line 921 of file lexer.cpp. References currentChar(), eq, macroRelational(), nextChar(), peekChar(), and readWhiteSpaces(). Referenced by macroBoolAnd(). |
|
Definition at line 992 of file lexer.cpp. References macroLogicalOr(), and readWhiteSpaces(). Referenced by macroPrimary(), processElif(), and processIf(). |
|
Definition at line 968 of file lexer.cpp. References currentChar(), currentPosition(), m_source, macroBoolOr(), nextChar(), peekChar(), and readWhiteSpaces(). Referenced by macroLogicalOr(). |
|
Definition at line 981 of file lexer.cpp. References currentChar(), macroLogicalAnd(), nextChar(), peekChar(), and readWhiteSpaces(). Referenced by macroExpression(). |
|
Definition at line 861 of file lexer.cpp. References currentChar(), macroPrimary(), nextChar(), peekChar(), and readWhiteSpaces(). Referenced by macroAddSubtract(). |
|
Definition at line 807 of file lexer.cpp. References currentChar(), Driver::hasMacro(), m_driver, macroExpression(), nextChar(), nextToken(), readWhiteSpaces(), Token::text(), toInt(), Token_char_literal, Token_identifier, Token_number_literal, and Token::type. Referenced by macroMultiplyDivide(). |
|
Definition at line 898 of file lexer.cpp. References currentChar(), macroAddSubtract(), nextChar(), and readWhiteSpaces(). Referenced by macroEquality(). |
|
Definition at line 512 of file lexer.h. References m_currentColumn, and m_ptr. |
|
Definition at line 501 of file lexer.h. References m_currentColumn, m_ptr, m_source, and m_startLine. Referenced by macroAddSubtract(), macroBoolAnd(), macroBoolOr(), macroBoolXor(), macroEquality(), macroLogicalAnd(), macroLogicalOr(), macroMultiplyDivide(), macroPrimary(), macroRelational(), nextToken(), processDefine(), processInclude(), readCharLiteral(), readIdentifier(), readLineComment(), readMultiLineComment(), readNumberLiteral(), readStringLiteral(), and readWhiteSpaces(). |
|
|
|
|
|
Definition at line 760 of file lexer.h. References m_endPtr, m_ptr, and m_source. Referenced by findOperator2(), findOperator3(), macroBoolAnd(), macroBoolOr(), macroEquality(), macroLogicalAnd(), macroLogicalOr(), macroMultiplyDivide(), nextToken(), processDefine(), readCharLiteral(), readLineComment(), readMultiLineComment(), and readStringLiteral(). |
|
Definition at line 740 of file lexer.h. Referenced by handleDirective(), and nextToken(). |
|
Definition at line 632 of file lexer.cpp. References Macro::addArgument(), Driver::addMacro(), Macro::Argument, currentChar(), Driver::currentFileName(), currentPosition(), m_driver, m_source, nextChar(), nextToken(), peekChar(), readIdentifier(), readWhiteSpaces(), Driver::removeMacro(), Macro::setBody(), Macro::setFileName(), Macro::setHasArguments(), Macro::setName(), setPreprocessorEnabled(), Token::text(), and Token::type. Referenced by handleDirective(). |
|
Definition at line 710 of file lexer.cpp. References m_ifLevel, m_skipping, m_trueTest, and macroExpression(). Referenced by handleDirective(). |
|
Definition at line 698 of file lexer.cpp. References m_ifLevel, m_skipping, and m_trueTest. Referenced by handleDirective(). |
|
Definition at line 726 of file lexer.cpp. References m_ifLevel, m_skipping, and m_trueTest. Referenced by handleDirective(). |
|
Definition at line 736 of file lexer.cpp. References m_skipping, m_trueTest, macroDefined(), macroExpression(), and testIfLevel(). Referenced by handleDirective(). |
|
Definition at line 753 of file lexer.cpp. References m_skipping, m_trueTest, macroDefined(), and testIfLevel(). Referenced by handleDirective(). |
|
Definition at line 763 of file lexer.cpp. References m_skipping, m_trueTest, macroDefined(), and testIfLevel(). Referenced by handleDirective(). |
|
Definition at line 773 of file lexer.cpp. References Driver::addDependence(), currentChar(), Driver::currentFileName(), currentPosition(), Dep_Global, Dep_Local, Dependence, m_driver, m_skipping, m_source, nextChar(), and readWhiteSpaces(). Referenced by handleDirective(). |
|
Definition at line 798 of file lexer.cpp. References currentPosition(), m_driver, m_source, readIdentifier(), readWhiteSpaces(), and Driver::removeMacro(). Referenced by handleDirective(). |
|
Definition at line 534 of file lexer.cpp. References currentChar(), nextToken(), readWhiteSpaces(), and Token::text(). Referenced by nextToken(). |
|
Definition at line 626 of file lexer.h. References currentChar(), currentPosition(), len, m_endPtr, nextChar(), and peekChar(). Referenced by nextToken(). |
|
Definition at line 518 of file lexer.h. References currentChar(), and nextChar(). Referenced by macroDefined(), nextToken(), processDefine(), and processUndef(). |
|
Definition at line 542 of file lexer.h. References Driver::addProblem(), currentChar(), Driver::currentFileName(), currentPosition(), m_driver, m_reportMessages, m_source, nextChar(), and peekChar(). Referenced by nextToken(). |
|
Definition at line 583 of file lexer.h. References Driver::addProblem(), currentChar(), Driver::currentFileName(), currentPosition(), m_driver, m_reportMessages, m_source, nextChar(), and peekChar(). Referenced by nextToken(). |
|
Definition at line 674 of file lexer.h. References currentChar(), and nextChar(). Referenced by nextToken(). |
|
Definition at line 651 of file lexer.h. References currentChar(), len, m_endPtr, nextChar(), and peekChar(). Referenced by nextToken(). |
|
Definition at line 524 of file lexer.h. References currentChar(), m_inPreproc, and nextChar(). Referenced by macroAddSubtract(), macroBoolAnd(), macroBoolOr(), macroBoolXor(), macroDefined(), macroEquality(), macroExpression(), macroLogicalAnd(), macroLogicalOr(), macroMultiplyDivide(), macroPrimary(), macroRelational(), nextToken(), processDefine(), processInclude(), processUndef(), and readArgument(). |
|
Definition at line 443 of file lexer.h. Referenced by nextToken(). |
|
|
|
|
|
|
|
Definition at line 141 of file lexer.cpp. References m_currentColumn, m_currentLine, m_endPtr, m_ifLevel, m_index, m_ptr, m_size, m_skipping, m_source, m_startLine, m_tokens, and m_trueTest. Referenced by Lexer(), and setSource(). |
|
Definition at line 500 of file lexer.cpp. References m_words. |
|
|
Definition at line 745 of file lexer.h. References m_preprocessorEnabled. Referenced by handleDirective(), nextToken(), and processDefine(). |
|
Definition at line 448 of file lexer.h. References m_recordComments. |
|
Definition at line 458 of file lexer.h. References m_recordWhiteSpaces. |
|
Definition at line 785 of file lexer.h. References m_reportMessages. Referenced by KDevDriver::setupLexer(). |
|
Definition at line 775 of file lexer.h. References m_reportWarnings. Referenced by KDevDriver::setupLexer(). |
|
Definition at line 735 of file lexer.h. References m_skipWordsEnabled. Referenced by handleDirective(). |
|
Definition at line 130 of file lexer.cpp. References m_endPtr, m_inPreproc, m_ptr, m_source, reset(), and tokenize(). Referenced by CppCodeCompletion::completeText(), Driver::parseFile(), and CppCodeCompletion::typeName(). |
|
Definition at line 510 of file lexer.cpp. References eof(), m_currentColumn, m_currentLine, and nextToken(). Referenced by handleDirective(), and nextToken(). |
|
Definition at line 730 of file lexer.h. Referenced by handleDirective(). |
|
|
|
Definition at line 614 of file lexer.cpp. References m_ifLevel, and m_skipping. Referenced by processIf(), processIfdef(), and processIfndef(). |
|
Definition at line 161 of file lexer.cpp. References Token::text(), and Token::type. Referenced by macroPrimary(). |
|
Definition at line 486 of file lexer.h. References m_size, and m_tokens. Referenced by Parser::toString(). |
|
Definition at line 478 of file lexer.cpp. References ADD_TOKEN, CREATE_TOKEN, currentChar(), currentPosition(), m_currentColumn, m_currentLine, m_size, m_startLine, nextToken(), Token::setEndPosition(), Token::setStartPosition(), Token_eof, and Token::type. Referenced by setSource(). |
|
Definition at line 496 of file lexer.h. References Token::position(). |
Member Data Documentation
|
Definition at line 288 of file lexer.h. Referenced by Lexer(), nextToken(), and ~Lexer(). |
|
Definition at line 302 of file lexer.h. Referenced by nextChar(), nextToken(), reset(), skip(), and tokenize(). |
|
Definition at line 301 of file lexer.h. Referenced by nextToken(), reset(), skip(), and tokenize(). |
|
Definition at line 289 of file lexer.h. Referenced by macroDefined(), macroPrimary(), nextToken(), processDefine(), processInclude(), processUndef(), readLineComment(), and readMultiLineComment(). |
|
Definition at line 295 of file lexer.h. Referenced by currentChar(), findOperator2(), findOperator3(), nextToken(), peekChar(), readCharLiteral(), readStringLiteral(), reset(), and setSource(). |
|
Definition at line 308 of file lexer.h. Referenced by processElif(), processElse(), processEndif(), reset(), and testIfLevel(). |
|
Definition at line 292 of file lexer.h. Referenced by lookAhead(), nextToken(), reset(), and setIndex(). |
|
Definition at line 310 of file lexer.h. Referenced by handleDirective(), nextToken(), readWhiteSpaces(), and setSource(). |
|
Definition at line 309 of file lexer.h. Referenced by nextToken(), and setPreprocessorEnabled(). |
|
Definition at line 294 of file lexer.h. Referenced by currentChar(), eof(), findOperator2(), findOperator3(), nextChar(), peekChar(), reset(), and setSource(). |
|
Definition at line 296 of file lexer.h. Referenced by setRecordComments(). |
|
Definition at line 297 of file lexer.h. Referenced by setRecordWhiteSpaces(). |
|
Definition at line 313 of file lexer.h. Referenced by readLineComment(), readMultiLineComment(), and setReportMessages(). |
|
Definition at line 312 of file lexer.h. Referenced by setReportWarnings(). |
|
Definition at line 291 of file lexer.h. Referenced by lookAhead(), nextToken(), reset(), tokenAt(), and tokenize(). |
|
Definition at line 306 of file lexer.h. Referenced by handleDirective(), nextToken(), processElif(), processElse(), processEndif(), processIf(), processIfdef(), processIfndef(), processInclude(), reset(), and testIfLevel(). |
|
Definition at line 303 of file lexer.h. Referenced by setSkipWordsEnabled(). |
|
Definition at line 293 of file lexer.h. Referenced by currentChar(), macroDefined(), macroLogicalAnd(), nextChar(), nextToken(), peekChar(), processDefine(), processInclude(), processUndef(), readLineComment(), readMultiLineComment(), reset(), and setSource(). |
|
Definition at line 298 of file lexer.h. Referenced by nextChar(), nextToken(), reset(), and tokenize(). |
|
Definition at line 290 of file lexer.h. Referenced by Lexer(), lookAhead(), nextToken(), reset(), and tokenAt(). |
|
Definition at line 307 of file lexer.h. Referenced by processElif(), processElse(), processEndif(), processIf(), processIfdef(), processIfndef(), and reset(). |
|
Definition at line 299 of file lexer.h. Referenced by addSkipWord(), nextToken(), and resetSkipWords(). |
The documentation for this class was generated from the following files: