Matchbox 0.2

Keywords

Keywords are reserved words and cannot be used as variable or function names.

Implemented Keywords

Keyword Purpose
func Defines a function.
int Names the signed 32-bit integer type.
return Ends a function and returns an integer.
var Declares a variable.

Other Reserved Words

The 0.2 lexer also reserves words for features that are not implemented by this release:

as, async, await, bool, break, catch, char, class, const, construct, continue, defer, delete, destruct, double, else, enum, extends, extension, extern, false, finally, float, for, has, if, in, instanceof, int8, int16, int32, int64, is, match, protocol, public, self, sizeof, static, struct, throw, trait, true, try, type, typeof, uint, uint8, uint16, uint32, uint64, use, where, while, and yield.

Using one of these words where a name is expected produces a syntax diagnostic. Their presence in the lexer does not mean the corresponding feature is available.