candy-generator: Update jflex, jcup dependencies

Update generated parser code.
Clarify Licenses in pom.
This commit is contained in:
Christian Kohlschütter 2023-10-14 18:48:23 +02:00
parent 050a28476c
commit 7e6e599030
7 changed files with 4063 additions and 3544 deletions

View File

@ -18,7 +18,7 @@
<dependencies>
<dependency>
<groupId>edu.princeton.cup</groupId>
<groupId>com.github.vbmacher</groupId>
<artifactId>java-cup</artifactId>
</dependency>
<dependency>

View File

@ -100,7 +100,7 @@ public class GenerateParser {
File typescriptDefScannerBackup = new File(typescriptDefScanner.toString() + "~");
JFlex.Main.main(new String[] {typescriptDefLex.toString()});
jflex.Main.main(new String[] {typescriptDefLex.toString()});
Files.deleteIfExists(typescriptDefScannerBackup.toPath());
// Remove date from "The following code was generated ..."

View File

@ -206,10 +206,6 @@
<artifactId>jsap</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>edu.princeton.cup</groupId>
<artifactId>java-cup</artifactId>
</dependency>
<dependency>
<groupId>de.jflex</groupId>
<artifactId>jflex</artifactId>

View File

@ -1,6 +1,6 @@
//----------------------------------------------------
// The following code was generated by CUP v0.10k
// The following code was generated by CUP v0.11b 20160615 (GIT 4ac7450)
//----------------------------------------------------
package org.jsweet.input.typescriptdef.parser;
@ -83,5 +83,82 @@ public class sym {
public static final int IMPLIES = 35;
public static final int STATIC = 65;
public static final int EQUALS = 20;
public static final String[] terminalNames = new String[] {
"EOF",
"error",
"COL",
"COMMA",
"DOT",
"DOTDOT",
"DOTDOTDOT",
"SEMI",
"LPAREN",
"RPAREN",
"LCPAREN",
"RCPAREN",
"LSPAREN",
"RSPAREN",
"SQUARE",
"LT",
"LTE",
"GTE",
"GT",
"ASSIGN",
"EQUALS",
"NOTEQUALS",
"MULT",
"DIV",
"MINUS",
"MINUSMINUS",
"PLUS",
"PLUSPLUS",
"DOC",
"REFERENCE",
"OROR",
"ANDAND",
"AND",
"NOT",
"TUBE",
"IMPLIES",
"MATCHES",
"AT",
"ARROW_RIGHT",
"INT",
"NUM",
"TRUE",
"FALSE",
"IDENTIFIER",
"QUESTION",
"DOLLAR",
"IMPORT",
"EXPORT",
"FUNCTION",
"PRIVATE",
"PROTECTED",
"PUBLIC",
"ABSTRACT",
"DECLARE",
"DECLARE_MODULE",
"DECLARE_FUNCTION",
"DECLARE_CLASS",
"DECLARE_ENUM",
"TYPE_MACRO",
"INTERFACE",
"CLASS",
"VAR",
"EXTENDS",
"IMPLEMENTS",
"NEW",
"STATIC",
"TYPEOF",
"CONST",
"IS",
"AS",
"FROM",
"ENUM",
"LF",
"LPAREN_FUNC",
"RPAREN_FUNC"
};
}

View File

@ -131,14 +131,16 @@
</dependency>
<dependency>
<groupId>edu.princeton.cup</groupId>
<!-- License (non-viral Open Source): http://www2.cs.tum.edu/projects/cup/licence.php -->
<groupId>com.github.vbmacher</groupId>
<artifactId>java-cup</artifactId>
<version>10k</version>
<version>11b-20160615-2</version>
</dependency>
<dependency>
<!-- License (3-clause-BSD-style): https://github.com/jflex-de/jflex/blob/master/LICENSE.md -->
<groupId>de.jflex</groupId>
<artifactId>jflex</artifactId>
<version>1.3.5</version>
<version>1.9.1</version>
</dependency>
</dependencies>