30 Commits

Author SHA1 Message Date
Clément Fournier
a11f45e511 Cleanup spec 2020-09-17 22:54:59 +02:00
Clément Fournier
b8af0dda6e Move AbstractTokenManager 2020-09-17 22:44:38 +02:00
Clément Fournier
e93e5b0a4c Move into .io package 2020-09-17 22:43:29 +02:00
Clément Fournier
1f8c5b65b3 Better implementation for appendSuffix 2020-09-17 22:41:16 +02:00
Clément Fournier
c088a6add5 Rename charStream methods 2020-09-17 22:41:16 +02:00
Clément Fournier
c1eb426142 Use camelCase name for PLSQL 2020-08-26 19:25:21 +02:00
Clément Fournier
c5f8d16caf Cleanup wrapper script 2020-08-26 19:10:32 +02:00
Clément Fournier
eed8a1609a Same for VM module 2020-08-26 19:10:32 +02:00
Clément Fournier
9ed0da4ed5 Make modelica visitor generic 2020-08-26 19:10:32 +02:00
Clément Fournier
80a75a1f42 Change names of some methods to clarify overloading
This way you don't need to upcast a node to eg JavaNode
in order to call the next method to delegate:

```java
visit((JavaNode) node, data) -> visitJavaNode(node, data)
```

This prevents writing `visit(node, data)` and not being
sure what overload is called.
2020-07-23 16:29:52 +02:00
Clément Fournier
27ea6a92e5 Rename ant property 2020-07-01 11:06:48 +02:00
Clément Fournier
b88ddf41c0 Add generic visitor interface in pmd-core
Replace SideEffectingVisitor with JavaVisitor

The new visitor is generic. We don't actually need the
old Object->Object visitor, this could just be the new
generic visitor but erased

Port language level checker

Move delegators

Remove old accept methods

Remove reduced adapter

Cleanup some visitor

Make ant wrapper replace old visitor completely

Doc

Add DeprecatedUntil700 annotation

Add top interface for visitors

Convert JSP visitors

Checkstyle

Fix java module
2020-06-14 11:43:24 +02:00
Clément Fournier
62a9d5b655 Fix build 2020-03-20 18:07:56 +01:00
Clément Fournier
368573e7c7 Start removing TokenManager wrappers 2020-03-20 18:07:56 +01:00
Clément Fournier
0763ccd384 Merge branch '7.0.x' into plsql-javacc 2020-03-20 14:49:06 +01:00
Clément Fournier
9aeefdb817 Dont delete jjtSetLastToken
JJT grammars should mention TRACK_TOKENS=false;
On the java-grammar branch some tokens are adjusted
manually with calls to jjtSetLastToken and deleting
these calls messes that up
2020-03-20 05:37:23 +01:00
Andreas Dangel
f6d27c6c61 [plsql] Adapt PLSQL to new javacc wrapper 2020-03-19 20:33:17 +01:00
Clément Fournier
9a62a662c1 Remove track-tokens for vf, jsp 2020-03-19 17:57:30 +01:00
Clément Fournier
b530d3e5a4 Don't duplicate setLastToken for jjtree nodes
This is handled by the closeNodeScope routine
of the JjtreeBuilder, the parser shouldn't call
this itself
2020-03-19 17:37:25 +01:00
Clément Fournier
9983a52486 Fix windows build 2020-02-15 00:50:14 +01:00
Clément Fournier
e46a875f2c Port velocity module to new script
Remove a bunch of useless copy pasted goo
* LogUtil
* TemplateParseException
* MacroParseException
* Many methods of AbstractVmNode

Rename ASTprocess to ASTTemplate.
2020-02-14 23:20:57 +01:00
Clément Fournier
d726990e09 Make base parser adapter for jjtree 2020-01-25 16:36:42 +01:00
Clément Fournier
b09b58513b Merge branch '7.0.x' into master-ant-script 2020-01-17 16:22:46 +01:00
Clément Fournier
0cc9740279 Fix windows build
Line separators in regex are replaced
with platform independent \R. Good thing
we have that automatic windows build
2020-01-15 00:07:06 +01:00
Clément Fournier
0d6f03553a Port java module 2020-01-11 08:13:31 +01:00
Clément Fournier
2d280d0fb0 Make constants file 2020-01-11 04:47:40 +01:00
Clément Fournier
8a128a3bea Replace token tracking function 2020-01-11 01:21:09 +01:00
Clément Fournier
ad7e9eb75d Make token document store first token 2020-01-11 00:23:43 +01:00
Clément Fournier
f715e6af72 Use maven properties from within the build.xml 2020-01-10 23:27:07 +01:00
Clément Fournier
efc3becc01 Checkout wrapper script, pmd-core, pmd-modelica 2020-01-10 22:57:47 +01:00