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

Wrong positions in Syntax Tree #9

Open
ldoblies opened this issue Feb 18, 2013 · 0 comments
Open

Wrong positions in Syntax Tree #9

ldoblies opened this issue Feb 18, 2013 · 0 comments

Comments

@ldoblies
Copy link
Contributor

XQueryParser/JSONParseTreeHandler produce erroneous .pos values for nodes in the syntax tree for certain inputs.

Examples:
1.

xquery version "1.0";

(1, 2)

VersionDecl and MainModule are both children of Module. VersionDecl ends at (line=2, column=0). The MainModule node starts at (0,0), but it should start at (2,0).

(1, 2)

WS ("\n\n") and Module are both children of XQuery. WS ends at (2,0), however Module starts at (0,0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant