Changeset 606
- Timestamp:
- 07/22/08 14:10:11 (4 months ago)
- Files:
-
- trunk/rphp/compiler/parser/phplexer.cpp (modified) (2 diffs)
- trunk/rphp/compiler/parser/phplexer.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/rphp/compiler/parser/phplexer.cpp
r605 r606 48 48 int Lexer::state(int deepness) const 49 49 { 50 #ifdef PENDING_THOMAS 51 // TODO pending we need to look at other positions than top50 51 // was: return m_state[ m_state.size() - deepness - 1 ]; size() 52 52 return m_state[ m_state.size() - deepness - 1 ]; 53 #endif54 53 } 55 54 void Lexer::printState() … … 82 81 void Lexer::pushState( int state ) 83 82 { 84 m_state.push( state ); 83 m_state.push_back( state ); 84 //m_state.push( state ); which is a QVector::append() 85 85 } 86 86 87 87 void Lexer::popState() 88 88 { 89 m_state.pop(); 89 m_state.pop_back(); 90 // m_state.pop(); which is a QVector::data[ size() - 1 ] 90 91 } 91 92 trunk/rphp/compiler/parser/phplexer.h
r581 r606 23 23 24 24 #include "rphp_ast.h" 25 #include <stack> 26 //#include <string> 25 #include <vector> 27 26 #include <unistr.h> 28 27 … … 68 67 UChar32 lookAt( int pos ){ return m_content.char32At( m_curpos ); } 69 68 70 std:: stack<int> m_state;69 std::vector<int> m_state; // was: QStack<int> 71 70 enum State 72 71 {
