Skip to content

Field name 'width' is confusing proparse #53

Description

@DanielBaciu

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.

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