Skip to content

Double quotes in preprocessor parameters of include #51

Description

@DanielBaciu

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions