uwol / proleap-vb6-parser

ProLeap ANTLR4-based parser for Visual Basic 6.0
MIT License
79 stars 26 forks source link

VB6 Designer files throw parsing error #21

Open TymurGubayev opened 1 year ago

TymurGubayev commented 1 year ago

An example moduleConfig for a VB6 .dsr-file looks like this.

Begin {2D4C5A66-E9BE-4274-8824-E181D24D3C7E} myThing
    Caption         = "myThing"
    ClientHeight    = 10000
    ClientLeft      = 100
    ClientTop       = 100
    ClientWidth     = 10000
    StartUpPosition = 3  'Windows Default
    _ExtentX        = 28000
    _ExtentY        = 24000
    SectionData     = "myThing.dsx":0000
End

Trying to parse it, following exception is thrown.

[main] INFO io.proleap.vb6.asg.runner.impl.VbParserRunnerImpl - Parsing file myThing.dsr with charset UTF-8. Exception in thread "main" io.proleap.vb6.asg.exception.VbParserException: syntax error in line 1:6 no viable alternative at input 'Begin {2D4C5A66-E9BE-4274-8824-E181D24D3C7E}'

Removing the GUID and the name makes it parseable again.