Skip to content

Commit

Permalink
[build] Fix "mvn test" from root directory for java and kotlin. (#4284)
Browse files Browse the repository at this point in the history
* Fix "mvn test" from root directory for java and kotlin.

* Update README.md
  • Loading branch information
kaby76 authored Oct 15, 2024
1 parent 30c6ea0 commit ff0289a
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 22 deletions.
19 changes: 0 additions & 19 deletions java/java20/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,6 @@
</parent>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.4.0</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>Java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId>
Expand Down
38 changes: 38 additions & 0 deletions kotlin/kotlin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,41 @@ Anastasiya Shadrina [email protected]

## Origin source
<https://github.com/shadrina/kotlin-grammar-antlr4>

## Issues
The grammar has ambiguities in:
```
callSuffix
callableReference
classBody
classDeclaration
classMemberDeclaration
controlStructureBody
delegationSpecifier
delegationSpecifiers
enumEntries
functionDeclaration
functionLiteral
ifExpression
importHeader
jumpExpression
kotlinFile
modifier
objectLiteral
postfixUnaryExpression
propertyDeclaration
receiverType
secondaryConstructor
semi
simpleUserType
statement
statements
superExpression
type
typeRHS
typeReference
userType
valueArgument
whenEntry
whenExpression
```
8 changes: 8 additions & 0 deletions kotlin/kotlin/desc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,12 @@
<targets>Antlr4ng;Cpp;CSharp;Dart;Java;JavaScript;TypeScript;Python3</targets>
<grammar-files>KotlinLexer.g4;KotlinParser.g4</grammar-files>
<grammar-name>Kotlin</grammar-name>
<test>
<entry-point>kotlinFile</entry-point>
<inputs>examples/kotlinFile</inputs>
</test>
<test>
<entry-point>script</entry-point>
<inputs>examples/script</inputs>
</test>
</desc>
1 change: 0 additions & 1 deletion kotlin/kotlin/examples/script/hello.kts.errors

This file was deleted.

1 change: 0 additions & 1 deletion kotlin/kotlin/examples/script/preamble_nl.kts.errors

This file was deleted.

1 change: 0 additions & 1 deletion kotlin/kotlin/examples/script/preamble_nl_semi.kts.errors

This file was deleted.

0 comments on commit ff0289a

Please sign in to comment.