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

[BUG] goto not supported #151

Closed
Vaxood opened this issue Sep 4, 2023 · 1 comment
Closed

[BUG] goto not supported #151

Vaxood opened this issue Sep 4, 2023 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@Vaxood
Copy link

Vaxood commented Sep 4, 2023

input.lua

local function vaxod()

    if true then 
        goto v 
    end 
    ::v:: 
end

err :

←[0m←[33mPROMETHEUS: No config was specified, falling back to Minify preset←[0m
←[0m←[35mPROMETHEUS: ←[0mApplying Obfuscation Pipeline to input.lua ...
←[0m←[35mPROMETHEUS: ←[0mParsing ...
←[0m←[31mPROMETHEUS: Parsing Error at Position 7:12, unexpected token <Identifier> "v", expected <Symbol> "="←[0m
lua: src\logger.lua:54: Parsing Error at Position 7:12, unexpected token <Identifier> "v", expected <Symbol> "="
stack traceback:
        [C]: in function 'error'
        src\logger.lua:54: in function 'errorCallback'
        src\logger.lua:57: in function 'error'
        src\prometheus\parser.lua:134: in function 'expect'
        src\prometheus\parser.lua:472: in function 'statement'
        src\prometheus\parser.lua:171: in function 'block'
        src\prometheus\parser.lua:249: in function 'statement'
        src\prometheus\parser.lua:171: in function 'block'
        src\prometheus\parser.lua:314: in function 'statement'
        src\prometheus\parser.lua:171: in function 'block'
        src\prometheus\parser.lua:149: in function 'parse'
        src\prometheus\pipeline.lua:178: in function 'apply'
        src\cli.lua:202: in main chunk
        [C]: in function 'require'
        cli.lua:12: in main chunk
        [C]: ?
        ```
        version : LuaU and Lua51
@Vaxood Vaxood added the bug Something isn't working label Sep 4, 2023
@levno-710 levno-710 added the duplicate This issue or pull request already exists label Sep 6, 2023
@levno-710
Copy link
Member

Prometheus currently only support Lua 5.1 completely.
Adding goto would need a slight rewrite of the parser + compiler.
Related to #62 (Lua 5.2+ Support)

@levno-710 levno-710 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants