~george-edison55/jsstudio/trunk

« back to all changes in this revision

Viewing changes to include/parsers/CParser.h

  • Committer: Nathan Osman
  • Date: 2011-08-25 05:46:33 UTC
  • Revision ID: admin@quickmediasolutions.com-20110825054633-h3jxnerh2pyv0ghl
Nearly completed Python parser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    /**
47
47
      * \param text  the text containing the tokens
48
48
      * \param pos   the current position within the text
49
 
      * \param token a reference that will contain the next token retrieved
50
 
      * \return false if the end of the string was reached, true otherwise
 
49
      * \return the next token retrieved
51
50
      *
52
51
      * Note: all derived classes must implement this method.
53
52
      */
54
 
    virtual bool GetNextToken(QString text, int & pos, CToken & token) = 0;
 
53
    virtual CToken GetNextToken(QString & text, int & pos) = 0;
55
54
 
56
55
    // Utility methods for moving around in code
57
56
    virtual bool SkipWhitespace(const QString &, int &);