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

p:to-char unsupported character: \p{L} #30

Open
jmikedupont2 opened this issue Nov 15, 2023 · 6 comments
Open

p:to-char unsupported character: \p{L} #30

jmikedupont2 opened this issue Nov 15, 2023 · 6 comments

Comments

@jmikedupont2
Copy link

[ERROR] Error on line 21 column 21 of antlr_4-to-w3c.xq:
  p:to-char  unsupported character: \p{L}
     invoked by function call at jar:file:/mnt/data1/2023/11/15/convert/convert.jar!/de/b\
ottlecaps/convert/xq/antlr_4/antlr_4-to-w3c.xq#197
     invoked by function call at jar:file:/mnt/data1/2023/11/15/convert/convert.jar!/de/b\
ottlecaps/convert/xq/antlr_4/antlr_4-to-w3c.xq#311
@yegor256
Copy link
Owner

@jmikedupont2 conert.jar doesn't support this regex syntax :(

@jmikedupont2
Copy link
Author

ok so that is the unsupported syntax in the input grammar? alright, well since it is not open source I am going try another solution https://github.com/vorpal-research/grammar-converter It looks like the convert.jar is just a collection of xq and xslt files so I suppose I could get them running but first the author needs to put a license on them that allows that.

@yegor256
Copy link
Owner

@jmikedupont2 indeed, the convert is not open source. I had to modify my grammar in order to make it work: replace \p{L} with [a-zA-Z]

@jmikedupont2
Copy link
Author

Okay but making a program that depends on non-open source and calling it open source is kind of a trick now because I feel like I've been tricked

@jmikedupont2
Copy link
Author

My entire reason for using open sources because I can change it and fix problems like this and now I can't

@yegor256
Copy link
Owner

yegor256 commented Dec 7, 2023

@jmikedupont2 totally agree

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

2 participants