Lexer Class Reference
#include <lexer.h>
Constructor & Destructor Documentation
|
Definition at line 109 of file lexer.cpp. References LexerData::beginScope(), d, Lexer(), m_tokens, and reset(). Referenced by Lexer(). |
|
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 addSkipWord(), and m_words. Referenced by addSkipWord(), and 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. References m_ptr. Referenced by macroDefined(), macroLogicalAnd(), nextToken(), processDefine(), processInclude(), processUndef(), readCharLiteral(), readLineComment(), readMultiLineComment(), and tokenize(). |
|
Definition at line 765 of file lexer.h. References m_endPtr, and m_ptr. Referenced by skip(). |
|
Definition at line 696 of file lexer.h. References currentChar(), m_endPtr, m_ptr, peekChar(), Token_and, Token_arrow, Token_assign, Token_concat, Token_decr, Token_eq, Token_geq, Token_incr, Token_leq, Token_or, Token_ptrmem, Token_scope, and Token_shift. Referenced by nextToken(). |
|
Definition at line 680 of file lexer.h. References currentChar(), m_endPtr, m_ptr, peekChar(), Token_assign, Token_ellipsis, and Token_ptrmem. Referenced by nextToken(). |
|
Definition at line 196 of file lexer.cpp. References Token::getStartPosition(), and getTokenPosition(). Referenced by getTokenPosition(), and Parser::reportError(). |
|
Definition at line 565 of file lexer.cpp. References currentChar(), handleDirective(), m_ifLevel, m_inPreproc, m_skipping, nextToken(), preprocessorEnabled(), processDefine(), processElif(), processElse(), processEndif(), processIf(), processIfdef(), processIfndef(), processInclude(), processUndef(), setPreprocessorEnabled(), setSkipWordsEnabled(), skip(), and skipWordsEnabled(). Referenced by handleDirective(), and 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_currentLine, m_ptr, and m_source. 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, m_source, and peekChar(). Referenced by findOperator2(), findOperator3(), macroBoolAnd(), macroBoolOr(), macroEquality(), macroLogicalAnd(), macroLogicalOr(), macroMultiplyDivide(), nextToken(), peekChar(), processDefine(), readCharLiteral(), readLineComment(), readMultiLineComment(), and readStringLiteral(). |
|
Definition at line 740 of file lexer.h. References m_preprocessorEnabled. 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(), processDefine(), readIdentifier(), readWhiteSpaces(), Driver::removeMacro(), Macro::setBody(), Macro::setFileName(), Macro::setHasArguments(), Macro::setName(), setPreprocessorEnabled(), Token::text(), and Token::type. Referenced by handleDirective(), and processDefine(). |
|
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_ifLevel, m_skipping, m_trueTest, macroDefined(), macroExpression(), and testIfLevel(). Referenced by handleDirective(). |
|
Definition at line 753 of file lexer.cpp. References m_ifLevel, m_skipping, m_trueTest, macroDefined(), and testIfLevel(). Referenced by handleDirective(). |
|
Definition at line 763 of file lexer.cpp. References m_ifLevel, 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_ifLevel, 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_currentColumn, m_currentLine, 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_currentColumn, m_currentLine, 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, m_ptr, nextChar(), and peekChar(). Referenced by nextToken(). |
|
Definition at line 524 of file lexer.h. References currentChar(), m_inPreproc, nextChar(), and readWhiteSpaces(). Referenced by macroAddSubtract(), macroBoolAnd(), macroBoolOr(), macroBoolXor(), macroDefined(), macroEquality(), macroExpression(), macroLogicalAnd(), macroLogicalOr(), macroMultiplyDivide(), macroPrimary(), macroRelational(), nextToken(), processDefine(), processInclude(), processUndef(), readArgument(), and readWhiteSpaces(). |
|
Definition at line 443 of file lexer.h. References m_recordComments. Referenced by nextToken(). |
|
Definition at line 453 of file lexer.h. References m_recordWhiteSpaces. |
|
Definition at line 780 of file lexer.h. References m_reportMessages. |
|
Definition at line 770 of file lexer.h. References m_reportWarnings. |
|
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, and setPreprocessorEnabled(). Referenced by handleDirective(), nextToken(), processDefine(), and setPreprocessorEnabled(). |
|
Definition at line 448 of file lexer.h. References m_recordComments, and setRecordComments(). Referenced by setRecordComments(). |
|
Definition at line 458 of file lexer.h. References m_recordWhiteSpaces, and setRecordWhiteSpaces(). Referenced by setRecordWhiteSpaces(). |
|
Definition at line 785 of file lexer.h. References m_reportMessages, and setReportMessages(). Referenced by setReportMessages(), and KDevDriver::setupLexer(). |
|
Definition at line 775 of file lexer.h. References m_reportWarnings, and setReportWarnings(). Referenced by setReportWarnings(), and KDevDriver::setupLexer(). |
|
Definition at line 735 of file lexer.h. References m_skipWordsEnabled, and setSkipWordsEnabled(). Referenced by handleDirective(), and setSkipWordsEnabled(). |
|
Definition at line 130 of file lexer.cpp. References m_endPtr, m_inPreproc, m_ptr, m_source, reset(), setSource(), and tokenize(). Referenced by CppCodeCompletion::completeText(), setSource(), and CppCodeCompletion::typeName(). |
|
Definition at line 510 of file lexer.cpp. References eof(), m_currentColumn, m_currentLine, nextToken(), and skip(). Referenced by handleDirective(), nextToken(), and skip(). |
|
Definition at line 730 of file lexer.h. References m_skipWordsEnabled. Referenced by handleDirective(). |
|
Definition at line 463 of file lexer.h. References m_source. |
|
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(), toInt(), Token_char_literal, Token_number_literal, and Token::type. Referenced by macroPrimary(), and toInt(). |
|
Definition at line 486 of file lexer.h. References m_size, m_tokens, and tokenAt(). Referenced by tokenAt(), and 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(), and tokenPosition(). Referenced by tokenPosition(). |
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(), readLineComment(), readMultiLineComment(), reset(), skip(), and tokenize(). |
|
Definition at line 301 of file lexer.h. Referenced by nextChar(), nextToken(), readLineComment(), readMultiLineComment(), 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(), eof(), findOperator2(), findOperator3(), nextToken(), peekChar(), readCharLiteral(), readStringLiteral(), reset(), and setSource(). |
|
Definition at line 308 of file lexer.h. Referenced by handleDirective(), nextToken(), processElif(), processElse(), processEndif(), processIf(), processIfdef(), processIfndef(), processInclude(), reset(), and testIfLevel(). |
|
Definition at line 292 of file lexer.h. Referenced by index(), 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(), preprocessorEnabled(), and setPreprocessorEnabled(). |
|
Definition at line 294 of file lexer.h. Referenced by currentChar(), currentPosition(), eof(), findOperator2(), findOperator3(), nextChar(), peekChar(), readStringLiteral(), reset(), and setSource(). |
|
Definition at line 296 of file lexer.h. Referenced by recordComments(), and setRecordComments(). |
|
Definition at line 297 of file lexer.h. Referenced by recordWhiteSpaces(), and setRecordWhiteSpaces(). |
|
Definition at line 313 of file lexer.h. Referenced by readLineComment(), readMultiLineComment(), reportMessages(), and setReportMessages(). |
|
Definition at line 312 of file lexer.h. Referenced by reportWarnings(), and 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 nextToken(), setSkipWordsEnabled(), and skipWordsEnabled(). |
|
Definition at line 293 of file lexer.h. Referenced by currentChar(), macroDefined(), macroLogicalAnd(), nextChar(), nextToken(), peekChar(), processDefine(), processInclude(), processUndef(), readLineComment(), readMultiLineComment(), reset(), setSource(), and source(). |
|
Definition at line 298 of file lexer.h. Referenced by 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: