diff options
author | Brett Stottlemyer <bstottle@ford.com> | 2015-09-07 18:46:40 -0400 |
---|---|---|
committer | Brett Stottlemyer <bstottle@ford.com> | 2015-10-07 18:03:30 +0000 |
commit | 40f903ddeb98c0f68c9c6021be5e770e751c86a4 (patch) | |
tree | b37aad7d2e96acc75b518602870ea3760f4c8531 /.qmake.conf | |
parent | e32d0fe440743a70395215aed99010c520460ad3 (diff) |
QLALR version of repc
This change moves the repc parser from hand-coded to
a QLALR parser. It uses a special* lexer/parser header
file that combines regexes** with QLALR to make
simplified grammars. That is, regular expressions
are the building blocks of the grammar, not more basic
tokens. It doesn't need lex or a compatible lexer
generator. It should support full conversion to a
complete (non-regex based) language if necessary, but
incrementally.
The goal is to make repc easier to extend by moving to
a grammar.
*qregexparser.h
**As of Qt 5.5, bootstrap (which is required for repc,
since it is a host tool) includes QRegExp, but not
QRegularExpressions. So this version of the parser
uses QRegularExpressions in non-bootstrap mode, and
includes a bunch of #defines to work with QRegExp in
bootstrap mode. THIS IS FRAGILE. The regex syntax
is different for each library. Ideally QRE will move
to bootstrap, and these hacks can be removed.
Change-Id: I86f4e764fd22702771d6b00358a0bf2da72658c0
Reviewed-by: Continuous Integration (KDAB) <build@kdab.com>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Diffstat (limited to '.qmake.conf')
-rw-r--r-- | .qmake.conf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.qmake.conf b/.qmake.conf index 148eb31..dfe54ac 100644 --- a/.qmake.conf +++ b/.qmake.conf @@ -1,3 +1,5 @@ load(qt_build_config) CONFIG += qt_example_installs MODULE_VERSION = 5.5.0 +top_srcdir=$$PWD +top_builddir=$$shadowed($$PWD) |