kdevelop:kdevelop-pg-qt.git
8 years agofix argument order and offset
Milian Wolff [Tue, 29 Jun 2010 15:12:51 +0000 (17:12 +0200)]
fix argument order and offset

8 years agoRemoved the last occurences of qDebug...
Jonathan Schmidt-Dominé [Tue, 29 Jun 2010 15:11:06 +0000 (17:11 +0200)]
Removed the last occurences of qDebug...
Removed the for-loop for '^'-cursor-positioning in yyerror

8 years agoMerge branch 'master' of git://gitorious.org/kdevelop/kdevelop-pg-qt
Jonathan Schmidt-Dominé [Thu, 24 Jun 2010 15:01:49 +0000 (17:01 +0200)]
Merge branch 'master' of git://gitorious.org/kdevelop/kdevelop-pg-qt

8 years agoFixed error in prefix-operator-code.
Jonathan Schmidt-Dominé [Thu, 24 Jun 2010 11:33:12 +0000 (13:33 +0200)]
Fixed error in prefix-operator-code.

8 years agobreak has no arguments
Milian Wolff [Sun, 13 Jun 2010 14:08:31 +0000 (16:08 +0200)]
break has no arguments

8 years agoMerge branch 'inlining'
Jonathan Schmidt-Dominé [Mon, 24 May 2010 12:21:12 +0000 (14:21 +0200)]
Merge branch 'inlining'

8 years agoSmall modification in serialize-visitor.
Jonathan Schmidt-Dominé [Mon, 24 May 2010 12:13:06 +0000 (14:13 +0200)]
Small modification in serialize-visitor.

8 years agoSmall modification in serialize-visitor.
Jonathan Schmidt-Dominé [Mon, 24 May 2010 12:13:06 +0000 (14:13 +0200)]
Small modification in serialize-visitor.

8 years agoFixed Clone-Tree-visitInlinedNonTerminal
Jonathan Schmidt-Dominé [Mon, 24 May 2010 12:10:21 +0000 (14:10 +0200)]
Fixed Clone-Tree-visitInlinedNonTerminal

8 years agoFixed GenerateAstRule::visitInlinedNonTerminal
Jonathan Schmidt-Dominé [Mon, 24 May 2010 12:09:47 +0000 (14:09 +0200)]
Fixed GenerateAstRule::visitInlinedNonTerminal

8 years agoInlining in cool-example.
Jonathan Schmidt-Dominé [Mon, 24 May 2010 12:09:22 +0000 (14:09 +0200)]
Inlining in cool-example.

8 years agoFixed PrettyPrinter::visitInlinedNonTerminal.
Jonathan Schmidt-Dominé [Mon, 24 May 2010 11:39:40 +0000 (13:39 +0200)]
Fixed PrettyPrinter::visitInlinedNonTerminal.

8 years agoFixed various visitInlinedNonTerminal-methods.
Jonathan Schmidt-Dominé [Mon, 24 May 2010 11:06:59 +0000 (13:06 +0200)]
Fixed various visitInlinedNonTerminal-methods.

8 years agoFixed first-set-creation with inlined non-terminals.
Jonathan Schmidt-Dominé [Sat, 22 May 2010 17:13:14 +0000 (19:13 +0200)]
Fixed first-set-creation with inlined non-terminals.

8 years agoAdded second inline-checker-test
Jonathan Schmidt-Dominé [Sat, 22 May 2010 15:59:56 +0000 (17:59 +0200)]
Added second inline-checker-test

8 years agoAvoid inlining of operator expressions
Jonathan Schmidt-Dominé [Sat, 22 May 2010 15:58:52 +0000 (17:58 +0200)]
Avoid inlining of operator expressions

8 years agoBetter DefaultVisitor::visitInlinedNonTerminal (affects the generated code)
Jonathan Schmidt-Dominé [Sat, 22 May 2010 15:00:47 +0000 (17:00 +0200)]
Better DefaultVisitor::visitInlinedNonTerminal (affects the generated code)

8 years agoUse a new token (T_INLINE) for ".=" (instead of '.' '=')
Jonathan Schmidt-Dominé [Sat, 22 May 2010 14:14:10 +0000 (16:14 +0200)]
Use a new token (T_INLINE) for ".=" (instead of '.' '=')

8 years agoUpdated case3 (empty-first)
Jonathan Schmidt-Dominé [Sat, 22 May 2010 14:12:59 +0000 (16:12 +0200)]
Updated case3 (empty-first)

8 years agoAdded test for cyclic-inlining-detection.
Jonathan Schmidt-Dominé [Sat, 22 May 2010 14:12:02 +0000 (16:12 +0200)]
Added test for cyclic-inlining-detection.

8 years agoParsing of scoped-names commented out, because it conflicts with the ".=".
Jonathan Schmidt-Dominé [Sat, 22 May 2010 14:02:45 +0000 (16:02 +0200)]
Parsing of scoped-names commented out, because it conflicts with the ".=".

8 years agoCyclic-inlining-checker added
Jonathan Schmidt-Dominé [Sat, 22 May 2010 13:56:14 +0000 (15:56 +0200)]
Cyclic-inlining-checker added

8 years agoFixed whitespace
Jonathan Schmidt-Dominé [Wed, 19 May 2010 22:03:52 +0000 (00:03 +0200)]
Fixed whitespace

8 years agoStarted inlining-support.
Jonathan Schmidt-Dominé [Wed, 19 May 2010 21:34:59 +0000 (23:34 +0200)]
Started inlining-support.

8 years agoFirst step towards more flexibility in operator-expressions.
Jonathan Schmidt-Dominé [Wed, 19 May 2010 20:52:56 +0000 (22:52 +0200)]
First step towards more flexibility in operator-expressions.

8 years agoFixed spelling-error.
Jonathan Schmidt-Dominé [Tue, 18 May 2010 21:18:38 +0000 (23:18 +0200)]
Fixed spelling-error.

8 years agoBetter cmake-module.
Jonathan Schmidt-Dominé [Tue, 18 May 2010 21:17:32 +0000 (23:17 +0200)]
Better cmake-module.

8 years agoFixed problem with COPY_CODE_TO_YYLVAL (cstring-functions related, as usual O_o)
Jonathan Schmidt-Dominé [Tue, 18 May 2010 12:57:33 +0000 (14:57 +0200)]
Fixed problem with COPY_CODE_TO_YYLVAL (cstring-functions related, as usual O_o)

8 years agoBetter line-numbers in compiler-messages, thank you Victor Vicente for the negative...
Jonathan Schmidt-Dominé [Tue, 18 May 2010 11:33:30 +0000 (13:33 +0200)]
Better line-numbers in compiler-messages, thank you Victor Vicente for the negative feedback. ;)

8 years agoFixed message in test/expected(1|2)
Jonathan Schmidt-Dominé [Mon, 10 May 2010 15:31:30 +0000 (15:31 -0000)]
Fixed message in test/expected(1|2)

8 years agoAdded missing reinterpret_cast to the generated Visitor::visitNode-method.
Jonathan Schmidt-Dominé [Mon, 10 May 2010 15:34:49 +0000 (15:34 -0000)]
Added missing reinterpret_cast to the generated Visitor::visitNode-method.

8 years agoNow you can use a switch-statement in Visitor::visitNode instead of a lookup-table.
Jonathan Schmidt-Dominé [Mon, 10 May 2010 01:47:26 +0000 (01:47 -0000)]
Now you can use a switch-statement in Visitor::visitNode instead of a lookup-table.

8 years agoFixed messages.
Jonathan Schmidt-Dominé [Sun, 9 May 2010 18:36:26 +0000 (18:36 -0000)]
Fixed messages.

8 years agoTest-Cases for all kinds of problems (FIRST/FIRST, empty first, empty operator, undef...
Jonathan Schmidt-Dominé [Sun, 9 May 2010 00:33:27 +0000 (00:33 -0000)]
Test-Cases for all kinds of problems (FIRST/FIRST, empty first, empty operator, undefined token undefined non-terminal additionally to the existing FIRST/FOLLOW-test)
Fixed: Missing EmptyOperator-checking
Fixed: Ugly output in EmptyFirst (symbols got visited multiple times)

8 years agoUpdated TODO and README (there was kdev-pg-related stuff!!)
Jonathan Schmidt-Dominé [Sat, 8 May 2010 23:35:10 +0000 (23:35 -0000)]
Updated TODO and README (there was kdev-pg-related stuff!!)

8 years agoBetter output and better testing ({FIRST/FIRST, FIRST/FOLLOW} x {operator-based,...
Jonathan Schmidt-Dominé [Sat, 8 May 2010 23:11:24 +0000 (23:11 -0000)]
Better output and better testing ({FIRST/FIRST, FIRST/FOLLOW} x {operator-based, bnf-based})

8 years agoA central QTextStream instead of qDebug, there where missing flushes etc., now proble...
Jonathan Schmidt-Dominé [Sat, 8 May 2010 22:54:58 +0000 (22:54 -0000)]
A central QTextStream instead of qDebug, there where missing flushes etc., now problem-reporting works fine.

8 years agoSVN_SILENT compile with QT_NO_CAST_TO_ASCII
Christoph Feck [Sat, 8 May 2010 17:54:22 +0000 (17:54 -0000)]
SVN_SILENT compile with QT_NO_CAST_TO_ASCII

If you are converting a QString to a QByteArray, you should specify
the encoding for the result. It looks like the comment is parsed by
astyle, so I assume LOCALE encoding, if not, please change.

CCMAIL:devel@the-user.org

8 years agoSupport for --beautiful-code (that is the old-style) and --error-aware-code (when...
Jonathan Schmidt-Dominé [Sat, 8 May 2010 01:09:47 +0000 (01:09 -0000)]
Support for --beautiful-code (that is the old-style) and --error-aware-code (when compiling the generated source the compiler messages will contain references to the grammar-file)

8 years agoUse [:#include "bla.h":] instead of [:#include <bla.h>:] in code-generation for user...
Jonathan Schmidt-Dominé [Fri, 7 May 2010 15:29:45 +0000 (15:29 -0000)]
Use [:#include "bla.h":] instead of [:#include <bla.h>:] in code-generation for user-supplied headers.

8 years agoOp2: A very complex test-case covering a lot of features, could be used
Jonathan Schmidt-Dominé [Fri, 7 May 2010 15:28:33 +0000 (15:28 -0000)]
Op2: A very complex test-case covering a lot of features, could be used
as unit-test.

8 years agoFixed wrong strcpy-stuff, ihgitt!
Jonathan Schmidt-Dominé [Thu, 6 May 2010 11:45:59 +0000 (11:45 -0000)]
Fixed wrong strcpy-stuff, ihgitt!

8 years agoA more complex example for operator-expression-parsing which may be used for a unit...
Jonathan Schmidt-Dominé [Thu, 29 Apr 2010 20:30:27 +0000 (20:30 -0000)]
A more complex example for operator-expression-parsing which may be used for a unit-test.

8 years agoOperator-expression-parsing improved
Jonathan Schmidt-Dominé [Thu, 29 Apr 2010 19:39:10 +0000 (19:39 -0000)]
Operator-expression-parsing improved
-better error handling
-more flexibility

8 years agoRemoved unnecessary KDE-dependency
Jonathan Schmidt-Dominé [Thu, 29 Apr 2010 13:36:07 +0000 (13:36 -0000)]
Removed unnecessary KDE-dependency

8 years agoAdded enable_testing
Jonathan Schmidt-Dominé [Thu, 29 Apr 2010 13:34:56 +0000 (13:34 -0000)]
Added enable_testing

8 years agoFixed ASBeautifier (++ instead of --)
Jonathan Schmidt-Dominé [Thu, 29 Apr 2010 11:56:28 +0000 (11:56 -0000)]
Fixed ASBeautifier (++ instead of --)
Added kFatal when trying to use the expression-parser with --no-ast.

8 years agoIt is krazy:excludeall and not krazy:exclude-all!!
Jonathan Schmidt-Dominé [Thu, 29 Apr 2010 11:29:21 +0000 (11:29 -0000)]
It is krazy:excludeall and not krazy:exclude-all!!

8 years agoFixed a lot of krazy-issues.
Jonathan Schmidt-Dominé [Thu, 29 Apr 2010 11:22:48 +0000 (11:22 -0000)]
Fixed a lot of krazy-issues.

8 years agoAUTHORS...
Jonathan Schmidt-Dominé [Wed, 28 Apr 2010 22:56:03 +0000 (22:56 -0000)]
AUTHORS...

8 years agoProduce extra-errors in the expression-parser.
Jonathan Schmidt-Dominé [Tue, 27 Apr 2010 17:57:35 +0000 (17:57 -0000)]
Produce extra-errors in the expression-parser.

8 years ago-Support for ternary expressions
Jonathan Schmidt-Dominé [Tue, 27 Apr 2010 16:55:42 +0000 (16:55 -0000)]
-Support for ternary expressions
-Simplified parentheses

8 years agoAdded TernaryExpression to AST-gen and Visitor-gens
Jonathan Schmidt-Dominé [Mon, 26 Apr 2010 12:45:25 +0000 (12:45 -0000)]
Added TernaryExpression to AST-gen and Visitor-gens

8 years agoFixed the lexer (rulePosition has to be set for operator-rules, too)
Jonathan Schmidt-Dominé [Sun, 25 Apr 2010 22:47:07 +0000 (22:47 -0000)]
Fixed the lexer (rulePosition has to be set for operator-rules, too)

8 years ago1. Support for parentheses
Jonathan Schmidt-Dominé [Sun, 25 Apr 2010 14:55:25 +0000 (14:55 -0000)]
1. Support for parentheses
2. AST-definitions get sorted topologically (ast_base etc.)
3. Operator-Expressions without any operators work

8 years agoAdded support for prefix-expressions...
Jonathan Schmidt-Dominé [Sat, 24 Apr 2010 22:36:48 +0000 (22:36 -0000)]
Added support for prefix-expressions...

8 years agoFixed start- and endToken
Jonathan Schmidt-Dominé [Sat, 24 Apr 2010 21:55:29 +0000 (21:55 -0000)]
Fixed start- and endToken

8 years agoObject-layout computation... (experiment, no real code)
Jonathan Schmidt-Dominé [Sat, 24 Apr 2010 01:06:17 +0000 (01:06 -0000)]
Object-layout computation... (experiment, no real code)

8 years agonew-visitor for operator-expressions
Jonathan Schmidt-Dominé [Thu, 22 Apr 2010 19:55:09 +0000 (19:55 -0000)]
new-visitor for operator-expressions

8 years agoSome tests: 1-+2*3^5
Jonathan Schmidt-Dominé [Thu, 22 Apr 2010 13:06:44 +0000 (13:06 -0000)]
Some tests: 1-+2*3^5
startToken and endToken are not yet correctly set...

8 years agostartToken and endToken for operator-expressions
Jonathan Schmidt-Dominé [Thu, 22 Apr 2010 12:07:49 +0000 (12:07 -0000)]
startToken and endToken for operator-expressions

8 years agoRemoved the "if (!m_indent) " to get good dumps.
Jonathan Schmidt-Dominé [Thu, 22 Apr 2010 11:11:14 +0000 (11:11 -0000)]
Removed the "if (!m_indent) " to get good dumps.

8 years agoBinary/Postifx: proper ASTs and proper visiting
Jonathan Schmidt-Dominé [Thu, 22 Apr 2010 11:10:16 +0000 (11:10 -0000)]
Binary/Postifx: proper ASTs and proper visiting

8 years agoVisitor+DefaultVisitor
Jonathan Schmidt-Dominé [Tue, 20 Apr 2010 16:39:31 +0000 (16:39 -0000)]
Visitor+DefaultVisitor

8 years ago-First test-cases for bottom-up-parsing work!
Jonathan Schmidt-Dominé [Tue, 20 Apr 2010 15:47:45 +0000 (15:47 -0000)]
-First test-cases for bottom-up-parsing work!
-Default visitor

8 years agoOn Qt only build, set cmake minimum requirement. Use KDE 4 defaults.
Fathi Boudra [Sun, 18 Apr 2010 20:17:38 +0000 (20:17 -0000)]
On Qt only build, set cmake minimum requirement. Use KDE 4 defaults.

8 years agoCheck KDE4 before adding tests directory. The tests use kde4_add_unit_test.
Fathi Boudra [Sun, 18 Apr 2010 19:48:51 +0000 (19:48 -0000)]
Check KDE4 before adding tests directory. The tests use kde4_add_unit_test.

8 years agofind Qt 4 as a fallback when we build with Qt only
Fathi Boudra [Sun, 18 Apr 2010 19:17:48 +0000 (19:17 -0000)]
find Qt 4 as a fallback when we build with Qt only

8 years agoBottom-Up-Fixes... v0.9.0
Jonathan Schmidt-Dominé [Sat, 27 Mar 2010 02:59:50 +0000 (02:59 -0000)]
Bottom-Up-Fixes...

8 years agoFixed token-text
Jonathan Schmidt-Dominé [Fri, 26 Mar 2010 13:54:42 +0000 (13:54 -0000)]
Fixed token-text

8 years agoAdded Q_UNUSED
Jonathan Schmidt-Dominé [Sun, 21 Mar 2010 15:01:08 +0000 (15:01 -0000)]
Added Q_UNUSED

8 years agoexplicit constructors
Jonathan Schmidt-Dominé [Sun, 21 Mar 2010 14:58:51 +0000 (14:58 -0000)]
explicit constructors

8 years agoFixed #includes
Jonathan Schmidt-Dominé [Sat, 20 Mar 2010 15:44:30 +0000 (15:44 -0000)]
Fixed #includes

8 years agoFixed some Krazy-Warnings
Jonathan Schmidt-Dominé [Sat, 20 Mar 2010 15:21:58 +0000 (15:21 -0000)]
Fixed some Krazy-Warnings

8 years agoFixed some Krazy-warnings.
Jonathan Schmidt-Dominé [Sat, 20 Mar 2010 15:01:45 +0000 (15:01 -0000)]
Fixed some Krazy-warnings.

8 years agoFixed some "unused" warnings.
Jonathan Schmidt-Dominé [Fri, 19 Mar 2010 00:15:48 +0000 (00:15 -0000)]
Fixed some "unused" warnings.

8 years agoBottom-Up-Parsing: ASTs.
Jonathan Schmidt-Dominé [Fri, 19 Mar 2010 00:13:02 +0000 (00:13 -0000)]
Bottom-Up-Parsing: ASTs.

8 years agoActivated the '?'-Operator
Jonathan Schmidt-Dominé [Thu, 18 Mar 2010 21:51:42 +0000 (21:51 -0000)]
Activated the '?'-Operator
It has been commented out since kdev-pg's first revision (439983, raggi).
This keyword is very useful because it ?xyz is better than (xyz|0).
Conflicting with ?[: ??
No, the '?' has the same priority as '*' and '+', it does not make sense
to put code after the ?-operator, you will need (xyz) or a single token
or etc. (it is called primary_item)
Of course it is theoretically possible that somebody forgets the (..)
and gets angry about kdev-pg-qt's behaviour, but a unique char instead
of the question-mark would not be intuitive (a '~' is simply not a '?')
.g files are still readable!

8 years agoAdded prototype for tern-operator->first. (bottom-up-parsing)
Jonathan Schmidt-Dominé [Sun, 14 Mar 2010 23:32:15 +0000 (23:32 -0000)]
Added prototype for tern-operator->first. (bottom-up-parsing)
TODO: finish the proto-types
TODO: add tern-operator->second
TODO: add empty binary operator
TODO: add variables needed for parsing (maybe a paren-stack and activeTern)
TODO: add ASTs
TODO: make it more flexible (token or symbol)

8 years agoAdded a prototype for prefix-operators (bottom-up-parsing)
Jonathan Schmidt-Dominé [Sun, 14 Mar 2010 23:25:55 +0000 (23:25 -0000)]
Added a prototype for prefix-operators (bottom-up-parsing)

8 years agoPrototypes for parentheses in bottom-up-parsing
Jonathan Schmidt-Dominé [Sun, 14 Mar 2010 23:14:58 +0000 (23:14 -0000)]
Prototypes for parentheses in bottom-up-parsing

8 years agoReal code for the base-symbol in bottom-up-parsing.
Jonathan Schmidt-Dominé [Sun, 14 Mar 2010 23:03:09 +0000 (23:03 -0000)]
Real code for the base-symbol in bottom-up-parsing.

8 years agoAdded KDevPG::capitalize and KDevPG::capitalized
Jonathan Schmidt-Dominé [Sun, 14 Mar 2010 22:23:14 +0000 (22:23 -0000)]
Added KDevPG::capitalize and KDevPG::capitalized

8 years agoRemoved debugging-output
Jonathan Schmidt-Dominé [Sun, 14 Mar 2010 22:15:27 +0000 (22:15 -0000)]
Removed debugging-output

8 years agoBottom-Up-Parsing (a prototype, you will get some code, but it is not yet complete)
Jonathan Schmidt-Dominé [Sun, 14 Mar 2010 22:14:08 +0000 (22:14 -0000)]
Bottom-Up-Parsing (a prototype, you will get some code, but it is not yet complete)

8 years agoopStack will be generated.
Jonathan Schmidt-Dominé [Sat, 13 Mar 2010 23:11:46 +0000 (23:11 -0000)]
opStack will be generated.

8 years agoFlags in globalSystem are now bits.
Jonathan Schmidt-Dominé [Sat, 13 Mar 2010 22:51:48 +0000 (22:51 -0000)]
Flags in globalSystem are now bits.
Added "needOperatorStack".

8 years agoSVN SILENT compile with Qt 4.7
Christoph Feck [Fri, 12 Mar 2010 16:57:24 +0000 (16:57 -0000)]
SVN SILENT compile with Qt 4.7

There is no QString(int) constructor

8 years agoAdded the development-guide to th README.
Jonathan Schmidt-Dominé [Tue, 9 Mar 2010 19:06:18 +0000 (19:06 -0000)]
Added the development-guide to th README.
I think a medium-size README is better than a very short HACKING-file.

8 years agoIntegrated operators into the existing visitors and added some documentation.
Jonathan Schmidt-Dominé [Fri, 5 Mar 2010 23:49:47 +0000 (23:49 -0000)]
Integrated operators into the existing visitors and added some documentation.

8 years agoAdded the internal data-structurs for operators.
Jonathan Schmidt-Dominé [Fri, 5 Mar 2010 15:18:28 +0000 (15:18 -0000)]
Added the internal data-structurs for operators.

8 years agoRemoved some spaces
Jonathan Schmidt-Dominé [Thu, 4 Mar 2010 22:45:12 +0000 (22:45 -0000)]
Removed some spaces

8 years agoStarted operator-support.
Jonathan Schmidt-Dominé [Thu, 4 Mar 2010 22:40:31 +0000 (22:40 -0000)]
Started operator-support.
It will be parsed, but there is not yet any evaluation.

8 years agoWriting new Visitors sucks. Writing a program to do that doesn't.
Jonathan Schmidt-Dominé [Tue, 2 Mar 2010 20:50:42 +0000 (20:50 -0000)]
Writing new Visitors sucks. Writing a program to do that doesn't.
It is now possible to tell kdevelop-pg-qt to generate an empty Visitor-skeleton.

8 years agoAdded support for conflict-verbosity:
Jonathan Schmidt-Dominé [Tue, 2 Mar 2010 18:51:15 +0000 (18:51 -0000)]
Added support for conflict-verbosity:
Strict, Permissive or Ignore

8 years agoUsing a variable instead of "DefaultVisitor".
Jonathan Schmidt-Dominé [Tue, 2 Mar 2010 13:24:13 +0000 (13:24 -0000)]
Using a variable instead of "DefaultVisitor".
(This will allow some usability-improvements in future)

8 years agoAdded a README.
Jonathan Schmidt-Dominé [Tue, 2 Mar 2010 00:04:35 +0000 (00:04 -0000)]
Added a README.

8 years agoNew generated files.
Jonathan Schmidt-Dominé [Thu, 31 Dec 2009 15:09:32 +0000 (15:09 -0000)]
New generated files.

8 years agofix build
Niko Sams [Tue, 29 Dec 2009 10:35:27 +0000 (10:35 -0000)]
fix build

8 years agoFixed include-guards. (special characters replaced by '_')
Jonathan Schmidt-Dominé [Mon, 28 Dec 2009 16:49:37 +0000 (16:49 -0000)]
Fixed include-guards. (special characters replaced by '_')