llcTokens.h

Go to the documentation of this file.
00001 /*
00002  *      llcTokens.h - Tokens for llc language
00003  *
00004  *  Copyright (C) 2002 The Pentagram Team
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00019 */
00020 
00021 #ifndef LLCTOKENS_H
00022 #define LLCTOKENS_H
00023 
00024 enum LLCToken
00025 {
00026         LLC_NONE=0x100, 
00027         // constants
00028         LLC_INTEGER,
00029         // vartypes
00030         LLC_WORD, LLC_DWORD, LLC_STRING, LLC_CSTRING, LLC_LIST, LLC_POINTER, LLC_CONST, LLC_REALLY,
00031         // function bits
00032         LLC_OPEN_BRACE, LLC_CLOSE_BRACE, LLC_OPEN_PAREN, LLC_CLOSE_PAREN, LLC_DOT,
00033         LLC_COMMA, LLC_SEMICOLON, LLC_COLON, LLC_DCOLON,
00034         LLC_OPEN_REFERENCE, LLC_CLOSE_REFERENCE,
00035         LLC_RETURN, LLC_SUSPEND,
00036         LLC_ROUTINE, LLC_PROCESS,
00037         LLC_EXCLUDE,
00038         LLC_OVERLOAD,
00039         LLC_RESULT,
00040         // math shift
00041         LLC_LEFT_SHIFT, LLC_RIGHT_SHIFT, LLC_LEFT_SHIFT_EQUALS, LLC_RIGHT_SHIFT_EQUALS,
00042         // math arith
00043         LLC_MUL, LLC_DIV, LLC_ADD, LLC_SUB, LLC_MOD, LLC_EXCLUSIVE_ADD, LLC_MUL_EQ, 
00044         LLC_DIV_EQ, LLC_ADD_EQ, LLC_SUB_EQ, LLC_EXCLUSIVE_ADD_EQ, LLC_INC, LLC_DEC, 
00045         LLC_EQUALS,
00046         // math compare
00047         LLC_AND, LLC_OR, LLC_LT, LLC_LE, LLC_GT, LLC_GE, LLC_NE, LLC_NOT, LLC_BIT_AND, 
00048         LLC_BIT_OR, LLC_BIT_NOT, LLC_BIT_AND_EQ, LLC_BIT_OR_EQ,
00049         LLC_TRUE, LLC_FALSE,
00050         // list
00051         LLC_LIST_OPEN, LLC_LIST_CLOSE, LLC_OPEN_INDEX, LLC_CLOSE_INDEX, LLC_IN,
00052         // conditionals
00053         LLC_HASHIF, LLC_IF, LLC_ELSE, LLC_WHILE, LLC_FOREACH, LLC_RECURSIVE,
00054         LLC_CASE, LLC_DEFAULT, LLC_BREAK, 
00055         LLC_CONTINUE,
00056         // overloadable functions
00057         LLC_OF_LOOK, LLC_OF_USE,
00058         // misc
00059         LLC_CLASS, LLC_INHERITS, LLC_IS_A, LLC_ARE,
00060         LLC_ADDRESS_OF,
00061         // idenfitiers
00062         LLC_FUNC_IDENT, LLC_IDENT,
00063         // debugging
00064         LLC_XWARN, LLC_XFAIL, LLC_XPASS,
00065         // eof
00066         LLC_EOF,
00067         // error
00068         LLC_ERROR
00069 };
00070 
00071 
00072 #endif

Generated on Fri Jul 27 22:27:23 2007 for pentagram by  doxygen 1.4.7