Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] Fix "mvn test" from root directory for java and kotlin. #4284

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading