indexdata / cql-java Goto Github PK
View Code? Open in Web Editor NEWCQL parser for Java
Home Page: http://www.indexdata.com/cql-java
CQL parser for Java
Home Page: http://www.indexdata.com/cql-java
All these four cql expressions result in the same parse tree when sent to new CQLParser().parse(cql).toXCQL()
:
foo bar
"foo bar"
cql.serverChoice=foo bar
cql.serverChoice="foo bar"
When sending these other four cql expressions only the two quoted work, the two unquoted result in CQLParseException: expected index or term, got EOF
:
foo bar.baz
"foo bar.baz"
cql.serverChoice=foo bar.baz
cql.serverChoice="foo bar.baz"
This is inconsistent. Either accept all unquoted or no unquoted expressions.
The latest version of Maven 3.8.1 does not play-well with Maven repos that are non-https.
It seems that cql-java is published here http://maven.indexdata.com/ and that https://maven.indexdata.com/ is inaccessible. Please consider enabling HTTPS or publishing to Maven Central.
The line here in the CQLLexer allows certain characters from being escaped:
The CQL spec says:
Double quotes enclosing a sequence of any characters except double quote (unless preceded by backslash ()). Backslash escapes the character following it. The resultant value includes all backslash characters except those releasing a double quote (this allows other systems to interpret the backslash character). The surrounding double quotes are not included.
I'm curious why those specific characters are included and how those characters mean that they release a double quote.
It is actually making it impossible for me to represent a Windows-style file path, for example:
file = some\\path\\in\\windows\.exe
This gets turned into:
file = some\\path\\in\\windows.exe
because the .
character is not on that list.
I happen to have a regular expression interpreter following the CQL parse that needs the value to be file = some\\path\\in\\windows\.exe
. If I know that the CQL parser is consistently escaping the following character, I could just pass in: file=some\\\\path\\\\in\\\\windows\\.exe
or if it consistently ignores it: file=some\\path\\in\\windows\.exe
.
Hello ,
what I need is a parser that starting from DDL (create, alter tables and other instructions) will get info about the schema into a java object.
Trying to use this library I'm getting CQLParseException:
Error parsing cql schema org.z3950.zing.cql.CQLParseException: expected boolean, got '('
Error parsing cql schema org.z3950.zing.cql.CQLParseException: expected index or term, got EOF
This library is suitable for this type of thing?
Thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.