#comment This file is part of Z80 Scheme Interpreter Z80 Scheme Interpreter is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Copyright 2007, Spencer Putt #endcomment #define str(zstr) .db zstr,0 #define .str str( keywords: ; Language keywords kwLambda .str "lambda" kwLetrec .str "letrec" kwLet .str "let" kwIf .str "if" kwCond .str "cond" kwElse .str "else kwDefine .str "define" kwBegin .str "begin" kwSet! .str "set!" kwQuote .str "quote" ; Language constants kwT .str "#t" kwF .str "#f" kwDot .str "." ; Arithmetic primitives kwAdd .str "~+" kwSub .str "~-" kwMul .str "~*" kwDiv .str "~/" kwEqu .str "~=" kwRemainder .str "~remainder" kwGR: .str "~>" kwLS: .str "~<" kwGRE: .str "~>=" kwLSE: .str "~<=" kwRandom .str "~random" kwZero? .str "~zero?" kwAdd1 .str "~add1" kwSub1 .str "~sub1" kwPositive? .str "~positive?" kwNegative? .str "~negative?" ; List primitives kwCons .str "~cons" kwCar .str "~car" kwCdr .str "~cdr" kwNull? .str "~null?" kwList .str "~list" kwAppend .str "~append" kwMember .str "~member" kwAssq .str "~assq" kwSetCar! .str "~set-car! kwSetCdr! .str "~set-cdr! ; Vector primitives kwMakeVector .str "make-vector" kwVectorRef .str "vector-ref" kwVectorSet! .str "vector-set!" kwVectorLength .str "vector-length" ; System primitives kwGarbageCollect .str "garbage-collect" kwHeapUsed .str "heap-used" kwExit .str "exit" ; Boolean primitives kwNot .str "~not" kwOr .str "or" kwAnd .str "and" ; Symbol primitives kwEq? .str "~eq?" ; General and type primitives kwMap .str "~map" kwEqual? .str "~equal?" kwNumber? .str "~number?" kwSymbol? .str "~symbol?" kwBoolean? .str "~boolean?" kwList? .str "~list?" kwPair? .str "~pair?" ; Character multiletter primitives kwNul .str "nul" ; Terminator .db 0