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

Field name 'width' is confusing proparse #53

Open
DanielBaciu opened this issue Aug 13, 2021 · 0 comments
Open

Field name 'width' is confusing proparse #53

DanielBaciu opened this issue Aug 13, 2021 · 0 comments

Comments

@DanielBaciu
Copy link

Field name 'width' is confusing proparse. Proparse expected an integer after width in following construct.

QUERY br_table NO-LOCK DISPLAY
transport COLUMN-LABEL "Transp" FORMAT "x(5)":U
length COLUMN-LABEL "Lengte" FORMAT "->,>>9":U
width COLUMN-LABEL "Breedte" FORMAT "->,>>9":U WIDTH 8.6

Original Exception: expecting NUMBER, found 'COLUMN-LABEL'

C:\work\ReverseEngineeringOE\src\WidthColumnNameExample.p:49:13: expecting NUMBER, found 'COLUMN-LABEL'
at antlr.Parser.match(Parser.java:211)
at com.joanju.proparse.ProParser.columnformat_opt(ProParser.java:31136)
at com.joanju.proparse.ProParser.columnformat(ProParser.java:31001)
at com.joanju.proparse.ProParser.def_browse_display_item(ProParser.java:37517)
at com.joanju.proparse.ProParser.def_browse_display_items_or_record(ProParser.java:37466)
at com.joanju.proparse.ProParser.def_browse_display(ProParser.java:37339)
at com.joanju.proparse.ProParser.definebrowsestate(ProParser.java:35008)
at com.joanju.proparse.ProParser.definestatement(ProParser.java:7574)
at com.joanju.proparse.ProParser.statement(ProParser.java:2656)
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:202)
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)

Full example is attached.
WidthColumnNameExample.zip

Proparse version is 4.1.0.1219.

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