Post Reply 
monic part 6: the mC programming language and compiler
06-21-2022, 11:31 PM
Post: #10
RE: monic part 6: the mC programming language and compiler
I've completed all of the control statements. In addition to the if, while, do, and for statements there are now conditional operators:

[Image: 52162933992_6ace19f7d8.jpg]

and switch statements:

[Image: 52162933682_61b57396ba.jpg]

as well as continue and break statements.

And of course no programming language would be complete without a goto statement Smile:

[Image: 52164001288_cd10e069a6.jpg]

All of the control statements behave like their C counterparts, except for switch which has an implied break at the end of a list of statements, e.g. the following are equivalent:

[Image: 52164196479_48d6429ed2.jpg][Image: 52164196259_33e9251c1a.jpg]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: monic part 6: the mC programming language and compiler - F-73P - 06-21-2022 11:31 PM



User(s) browsing this thread: 1 Guest(s)