Indentation control while developing a small python like language

后端 未结 2 1863
一生所求
一生所求 2021-02-10 08:14

I\'m developing a small python like language using flex, byacc (for lexical and parsing) and C++, but i have a few questions regarding scope control.

just as python it u

2条回答
  •  醉酒成梦
    2021-02-10 08:54

    Very interesting exercise. Can't you use the end keyword to check when the scope ends?

    On a different note, I have never seen a language that allows you to break out of several nested loops at once. There may be a good reason for that...

提交回复
热议问题