FORM  4.2.1
Macros | Functions | Variables
token.c File Reference
#include "form3.h"

Go to the source code of this file.

Macros

#define CHECKPOLY   {if(polyflag)MesPrint("&Illegal use of polynomial function"); polyflag = 0; }
 

Functions

int tokenize (UBYTE *in, WORD leftright)
 
void WriteTokens (SBYTE *in)
 
int simp1token (SBYTE *s)
 
int simpwtoken (SBYTE *s)
 
int simp2token (SBYTE *s)
 
int simp3atoken (SBYTE *s, int mode)
 
int simp3btoken (SBYTE *s, int mode)
 
int simp4token (SBYTE *s)
 
int simp5token (SBYTE *s, int mode)
 
int simp6token (SBYTE *tokens, int mode)
 

Variables

char * ttypes []
 

Detailed Description

The tokenizer. This is a part of the compiler that does an intermediate type of translation. It does look up the names etc and can do a number of optimizations. The resulting output is a stream of bytes which can be processed by the code generator (in the file compiler.c)

Definition in file token.c.

Variable Documentation

char* ttypes[]
Initial value:
= { "\n", "S", "I", "V", "F", "set", "E", "dotp", "#",
"sub", "d_", "$", "dub", "(", ")", "?", "??", ".", "[", "]",
",", "((", "))", "*", "/", "^", "+", "-", "!", "end", "{{", "}}",
"N_?", "conj", "()", "#d", "^d", "_", "snum" }

Definition at line 587 of file token.c.