Translations:Development/KDevelop-PG-Qt Introduction/152/en: Difference between revisions
Appearance
Importing a new version from external source |
(No difference)
|
Latest revision as of 09:53, 10 February 2019
KDevelop-PG-Qt has an alternative to the - potentially slow - backtracking mechanism: Look ahead. You can use the LA(qint64) function in embedded C++ code (see sections above). LA(1) will return the current token, you most probably never need to use that. Accordingly, LA(2) returns the next and LA(0) the previous token. (If you wonder where these somewhat uncommon indexes come from: Read the thesis, or make yourself acquainted with LA(k) parser theory.)