school

thing1's amazing school repo
Log | Files | Refs | Submodules | README

tokenizer.h (466B)


      1 #include <stdio.h>
      2 #include <string.h>
      3 
      4 #define MAXARGS 8
      5 #define MAXFUNCS 2048
      6 #define MAXVARS 8192
      7 
      8 int getBuiltIn(char *func, ast_node *node); // checks if a function is built in to zippy
      9 void expressFunction(char *function, ast_node *node); // puts a string into the ast_node struct
     10 ast_node *tokenize(char *input); // does the tokenization
     11 void printAst(ast_node *root); // shows an ast and its sub nodes
     12 void freeAst(ast_node *head); // frees most of the ast;