Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Building jsqlparser 4.7 from sources #1881

Unanswered
mikatane asked this question in Q&A
Discussion options

I want to build from the java source code (with some extensions to the grammar) -- I hope to build by setting up an eclipse project, though that is not essential to me.

The source code contains references to types Provider, StreamProvider, StringProvider that are not included in the zip file I get from github, nor are they generated by jjtree/javacc

You must be logged in to vote

Replies: 1 comment

Comment options

Greetings,

JSQLParser sits on JavaCC (a parser generator) which builds the Parser from a Grammar. Thus there are two steps needed:

  1. generate the parser sources from the Grammar
  2. build the parser

The Maven/Gradle plugins handle this gracefully. After generating the parser sources, you can find them in JSQLParser/build/generated/javacc/net/sf/jsqlparser/parser:

are@ryzen ~/d/s/J/JSQLParser (master)> ls -lh build/generated/javacc/net/sf/jsqlparser/parser
total 1.3M
-rw-r--r-- 1 are users 29K Oct 21 10:05 CCJSqlParserConstants.java
-rw-r--r-- 1 are users 976K Oct 21 10:05 CCJSqlParser.java
-rw-r--r-- 1 are users 284K Oct 21 10:05 CCJSqlParserTokenManager.java
-rw-r--r-- 1 are users 7.0K Oct 21 10:05 ParseException.java
-rw-r--r-- 1 are users 893 Oct 21 10:05 Provider.java
-rw-r--r-- 1 are users 1.8K Oct 21 10:05 StreamProvider.java
-rw-r--r-- 1 are users 1.2K Oct 21 10:05 StringProvider.java
-rw-r--r-- 1 are users 4.1K Oct 21 10:05 Token.java
-rw-r--r-- 1 are users 4.5K Oct 21 10:05 TokenMgrError.java
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /