Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Incorrect reporting of some errors #100

Closed
joetesta opened this issue Jun 14, 2018 · 2 comments
Closed

Incorrect reporting of some errors #100

joetesta opened this issue Jun 14, 2018 · 2 comments

Comments

@joetesta
Copy link

joetesta commented Jun 14, 2018

For each of the following two cases, an error is incorrectly reported as

Parsing error: mismatched input 'sub' expecting <EOF>
  1. sub with non-void return
sub dostuff() as Object
end sub
  1. print followed with elements separated by comma
sub dostuff()
  print "Restarting app", appStoreID
end sub
@nishtahir
Copy link
Member

Looks like these can only be reproduced when they preceded by a valid sub declaration.

sub dummy()
end sub

sub dostuff() as Object
end sub

@nishtahir
Copy link
Member

#107 should be addressing this issue. It looks like the problem was the parser bailed out early whenever it tried to complete parsing the following sub block.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants