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

Incomplete Compilation #110

Closed
Wolvereness opened this issue Sep 11, 2021 · 2 comments
Closed

Incomplete Compilation #110

Wolvereness opened this issue Sep 11, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@Wolvereness
Copy link

Describe the bug
Wrote a script that should be exactly 20 lines. Only 19 lines are outputted.

To Reproduce

macro Prop() line
	:PropUsage = (PropOld - :PL - :PR) / 4; PropOld = :PL + :PR $
end

Prop()
Prop()
Prop()
Prop()
Prop()
Prop()
Prop()
Prop()
Prop()
Prop()
Prop()
Prop()
Prop()
Prop()
Prop()
Prop()
Prop()
Prop()
Prop()
Prop()

Expected behavior

:PropUsage=(a-:PL-:PR)/4 a=:PL+:PR
:PropUsage=(b-:PL-:PR)/4 b=:PL+:PR
:PropUsage=(c-:PL-:PR)/4 c=:PL+:PR
:PropUsage=(d-:PL-:PR)/4 d=:PL+:PR
:PropUsage=(e-:PL-:PR)/4 e=:PL+:PR
:PropUsage=(f-:PL-:PR)/4 f=:PL+:PR
:PropUsage=(g-:PL-:PR)/4 g=:PL+:PR
:PropUsage=(h-:PL-:PR)/4 h=:PL+:PR
:PropUsage=(i-:PL-:PR)/4 i=:PL+:PR
:PropUsage=(j-:PL-:PR)/4 j=:PL+:PR
:PropUsage=(k-:PL-:PR)/4 k=:PL+:PR
:PropUsage=(l-:PL-:PR)/4 l=:PL+:PR
:PropUsage=(m-:PL-:PR)/4 m=:PL+:PR
:PropUsage=(n-:PL-:PR)/4 n=:PL+:PR
:PropUsage=(o-:PL-:PR)/4 o=:PL+:PR
:PropUsage=(p-:PL-:PR)/4 p=:PL+:PR
:PropUsage=(q-:PL-:PR)/4 q=:PL+:PR
:PropUsage=(r-:PL-:PR)/4 r=:PL+:PR
:PropUsage=(s-:PL-:PR)/4 s=:PL+:PR
:PropUsage=(t-:PL-:PR)/4 t=:PL+:PR

Actual output

:PropUsage=(a-:PL-:PR)/4 a=:PL+:PR
:PropUsage=(b-:PL-:PR)/4 b=:PL+:PR
:PropUsage=(c-:PL-:PR)/4 c=:PL+:PR
:PropUsage=(d-:PL-:PR)/4 d=:PL+:PR
:PropUsage=(e-:PL-:PR)/4 e=:PL+:PR
:PropUsage=(f-:PL-:PR)/4 f=:PL+:PR
:PropUsage=(g-:PL-:PR)/4 g=:PL+:PR
:PropUsage=(h-:PL-:PR)/4 h=:PL+:PR
:PropUsage=(i-:PL-:PR)/4 i=:PL+:PR
:PropUsage=(j-:PL-:PR)/4 j=:PL+:PR
:PropUsage=(k-:PL-:PR)/4 k=:PL+:PR
:PropUsage=(l-:PL-:PR)/4 l=:PL+:PR
:PropUsage=(m-:PL-:PR)/4 m=:PL+:PR
:PropUsage=(n-:PL-:PR)/4 n=:PL+:PR
:PropUsage=(o-:PL-:PR)/4 o=:PL+:PR
:PropUsage=(p-:PL-:PR)/4 p=:PL+:PR
:PropUsage=(q-:PL-:PR)/4 q=:PL+:PR
:PropUsage=(r-:PL-:PR)/4 r=:PL+:PR
:PropUsage=(s-:PL-:PR)/4 s=:PL+:PR

Platform:

  • VSCode: 1.60.0
  • vscode-yolol v0.1.9
@Wolvereness Wolvereness added the bug Something isn't working label Sep 11, 2021
@dbaumgarten
Copy link
Owner

Ok, this one was interesting.
If the compiler notices, that the generated yolol is 21 lines long, but the 21th line just consists of a goto1, it attempts to remove that line. Unfortunately (probably because of a typo) it also removed the 20th line...

@dbaumgarten
Copy link
Owner

Published as part of v0.1.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants