remoo69 / Compiler-Sheesh

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

issue with return value using yeet #31

Closed jldav1d closed 1 month ago

jldav1d commented 1 month ago

Expected: No error Error Message: Syntax Error: Line 2, Token 2: Unexpected "10" [Whole], expected -> ['#']

Code:

def whole func(){
    yeet 10#
}
sheesh(){
    whole x = 0#
}
remoo69 commented 1 month ago

image naiirita ako sa cause ng error, walang () yung return val pati yung literal_or_expr