Appendix A: Keywords
In Tokay, the following keywords are reserved words for control structures, values and special operators.
accept- accept parselet, optionally with a return valuebegin- sequence to execute at begining of a parseletbreak- break from a loop, optonally with a return valuecontinue- restart iteration in a loopelse- fallback forifconstructsend- sequence to execute at end of a parseletexit- stop program execution, optional with exit codeexpect- operator for consumable that expects the consumable and throws an error if not presentfalse- the false valuefor- head-controlledforloopif- branch based on the result of a conditional expressionin- part of thefor-loop syntaxloop- head-controlled loop with an optional abort conitionnext- continue with next sequence in a blocknot- operator for consumable that satisfies when the consumable is not consumednull- the null valuepeek- operator for consumable that satisfies when consumable is consumed but the reader rolls back afterwardspush- accept a sequence by pushing a valuereject- reject parselet as not being consumedrepeat- repeat parselet, optionally push a resultreturn- same likeaccept, but with a meaning for ordinary functionstrue- the true valuevoid- the void value