Skip to content

Commit d9f5fef

Browse files
committed
simple jjtree start
1 parent 594705a commit d9f5fef

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,15 @@
8484
<id>javacc</id>
8585
<phase>generate-sources</phase>
8686
<goals>
87-
<goal>javacc</goal>
87+
<goal>jjtree-javacc</goal>
8888
</goals>
8989
</execution>
9090
</executions>
91+
<configuration>
92+
<nodeDefaultVoid>true</nodeDefaultVoid>
93+
<visitor>true</visitor>
94+
<trackTokens>true</trackTokens>
95+
</configuration>
9196
<dependencies>
9297
<dependency>
9398
<groupId>net.java.dev.javacc</groupId>

src/main/javacc/net/sf/jsqlparser/parser/JSqlParserCC.jj renamed to src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ Delete Delete():
515515

516516
// See: http://technet.microsoft.com/en-us/library/ms187879%28v=sql.105%29.aspx
517517

518-
Column Column():
518+
Column Column() #Column :
519519
{
520520
String databaseName = null, schemaName = null, tableName = null, columnName = null;
521521
}
@@ -533,7 +533,7 @@ Column Column():
533533
}
534534
}
535535

536-
String RelObjectName():
536+
String RelObjectName() :
537537
{ Token tk = null; }
538538
{
539539
(tk=<S_IDENTIFIER> | tk=<S_QUOTED_IDENTIFIER>
@@ -562,7 +562,7 @@ String RelObjectNameExt():
562562
}
563563
}
564564

565-
Table Table():
565+
Table Table() #Table :
566566
{
567567
String serverName = null, databaseName = null, schemaName = null, tableName = null;
568568
}

0 commit comments

Comments
 (0)