For Brischeme, the lexemes are the largest substrings not containing whitespace that fall into one of the following classifications (classifications given in bold):
- The substrings
(,)are the left (lparen) and right (rpraren) parentheses. - The substrings
+,-,*,/,<,=,not,and,orare the primops (primitive operators). - The substring
defineis the keyword define and the substringlambdais the keyword lambda. - Any non-empty sequence of digits 0-9, and the substrings
#tand#fare literals (number literals and Boolean literals respectively). - Any non-empty substring, not falling into one of the above classes, that:
- begins with a lowercase letter of the English alphabet
- proceeds with letters that are either lower or upper case letters of the English alphabet, the underscore, an exclamation mark, a question mark or digits
is an ident (identifier).