remoo69 / Compiler-Sheesh

Compiler for the self-developed language Sheesh#.
MIT License
2 stars 1 forks source link

syntax issue with choose #53

Closed jldav1d closed 1 week ago

jldav1d commented 2 weeks ago

Expected: No Syntax Error Actual: Syntax Error

Code:

sheesh(){
    whole choice# 

    choose (choice) { 
        when '1':: 
            name = "hello" 
            felloff# 
        when '2':: 
            name = "bye" 
            felloff# 
        default :: 
            felloff#
    }
}

Error Message: Line 5, Token 4: Unexpected "EOL" [Newline], expected -> ['sus', 'charr', 'choose', 'felloff', 'text', 'Identifier', 'whole', 'yeet', 'up', 'for', 'bet', 'dec', 'kung']

remoo69 commented 1 week ago

image

correcticles na ata bih,,,,

remoo69 commented 1 week ago

image

close q n e2 bih,,,,