Clément Fournier
b70521874a
Fix failing tests
2024-04-28 20:10:22 +02:00
Andreas Dangel
e9a004e8dd
javacc-wrapper: Avoid replace for non existent parser files
...
This avoids errors like
[ERROR] [replaceregexp] The following file is missing: '.../pmd/pmd-javascript/target/generated-sources/javacc/net/sourceforge/pmd/lang/ecmascript5/ast/Ecmascript5ParserImpl.java'
2024-03-07 12:01:57 +01:00
Andreas Dangel
f49f25f0e1
Rename lang-terse-name to lang-id
2024-02-23 17:46:39 +01:00
Andreas Dangel
9e71e36ab1
Merge pull request #4811 from adangel:issue-4349-cleanup-deprecations
...
Cleanup remaining experimental and deprecated API #4811
2024-02-22 17:08:51 +01:00
Andreas Dangel
2cc9ae9d7e
[core] Consolidate internal api in LexException
2024-02-10 10:05:56 +01:00
Andreas Dangel
5599a8fd65
Merge branch 'master' into issue-4349-cleanup-deprecations
2024-02-08 18:23:41 +01:00
Andreas Dangel
5c02b62623
[core] Remove deprecated members in Reportable
...
Reportable#getBeginLine
Reportable#getBeginColumn
Reportable#getEndLine
Reportable#getEndColumn
2024-02-08 10:10:09 +01:00
Andreas Dangel
55d91791c3
[core] Rename TokenMgrError to LexException
...
See #4065
2024-01-11 15:56:28 +01:00
Andreas Dangel
41643dd020
[java] Avoid using Thread.fillInStackTrace() for token context
...
This requires to use the option TOKEN_MANAGER_USES_PARSER
2023-08-10 15:36:30 +02:00
Clément Fournier
37e2f8f208
Improve jjt error messages
2023-03-19 22:57:51 +01:00
Clément Fournier
072a932f27
Merge branch '7.0.x' into pmd7-token-kinds-internal
2022-09-11 01:44:39 +02:00
Clément Fournier
b045745269
[javacc] Make token constants file internal API
2022-07-27 11:49:14 +02:00
Clément Fournier
d9a3ef9691
Merge branch 'text-utils-simple' into text-utils-javacc
2021-03-30 03:04:07 +02:00
Andreas Dangel
f27dc1bde5
Merge branch 'master' into pmd/7.0.x
2021-01-16 19:29:09 +01:00
Clément Fournier
3ee32effda
Refactor token documents
...
Isolate static parts
2020-09-17 22:56:01 +02:00
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