remoo69 / Compiler-Sheesh

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

No syntax error when code blocks have no statements #74

Open jldav1d opened 3 weeks ago

jldav1d commented 3 weeks ago

Based on our CFG, code blocks such as for, kung, ehkung, etc. should at least have one statement within them.

Example Code:

sheesh(){
    for(whole i = 0 to 5){

    }
}
sheesh(){
    kung(cap){

    }
}
sheesh(){
    kung(cap){
        yeet#
    }
    ehkung(cap){

    }
}

All the code above should result in a syntax error.