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

Double quotes in preprocessor parameters of include #51

Open
DanielBaciu opened this issue Aug 13, 2021 · 1 comment
Open

Double quotes in preprocessor parameters of include #51

DanielBaciu opened this issue Aug 13, 2021 · 1 comment

Comments

@DanielBaciu
Copy link

In our framework we have a set of includes building up a browser in chui. I attached a subset to reproduce one error we have.
My proparse.dll version is 4.1.0.1219.

DoubleQuotes.zip

Example:
example.p
{browse.i
&bform="
customer.name column-label ""Name"" format ""x(16)""
with 12 down row 5 centered overlay"
}

browse.i
{ browser.i
{&*}
&bform = "with 12 down row 5 centered overlay "
&rep-add = "down. "
&bframe = brw{&seq}
}

browser.i
form {&bform} {{&bformf}{&}}
frame {&bframe}. /
BROWSE frame */

Error:

Original Exception: unexpected token: Name

c:\ws\dev\11.7relatief\lib/browser.i:185:6: unexpected token: Name
at com.joanju.proparse.ProParser.constant(ProParser.java:4280)
at com.joanju.proparse.ProParser.label_constant(ProParser.java:28307)
at com.joanju.proparse.ProParser.format_opt(ProParser.java:42823)
at com.joanju.proparse.ProParser.formatphrase(ProParser.java:42160)
at com.joanju.proparse.ProParser.form_item(ProParser.java:42028)
at com.joanju.proparse.ProParser.form_items_or_record(ProParser.java:38860)
at com.joanju.proparse.ProParser.formstate(ProParser.java:8861)
at com.joanju.proparse.ProParser.statement(ProParser.java:2768)
at com.joanju.proparse.ProParser.blockorstate(ProParser.java:560)
at com.joanju.proparse.ProParser.program(ProParser.java:120)
at com.joanju.proparse.DoParse.doParse(DoParse.java:205)
at org.prorefactor.treeparser.ParseUnit.parse(ParseUnit.java:270)
at org.prorefactor.treeparser.ParseUnit.parse(ParseUnit.java:226)
at org.prorefactor.treeparser.ParseUnit.treeParser01(ParseUnit.java:348)
at cli.Progress.ClrBridge.ClrApi.InvokeMethod(Unknown Source)

@DanielBaciu
Copy link
Author

What I also observed is that in my case we have two include levels. if we have only one level no error is reported by proparse.

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