/* $Id: PARSE.H 2.4 1995/07/20 11:24:33 leon Exp $
 * Parser common file
 */

#ifndef PARSE_H_INCLUDED 

#define PARSE_H_INCLUDED 

#ifdef __cplusplus

extern "C" {
#endif


#include <stdio.h>


enum NodeType {
        Node_X,
        Node_Y,
        Node_Z,
        Node_I,
        Node_J,
        Node_K,
        Node_F,
        Node_S,
        Node_Number,
        Node_R = 100,
        Node_A,
        Node_B,
        Node_T,
        Node_L,
        Node_GCODE = 1000,
        Node_MCODE,
        Node_EndCmd
};


typedef struct NODE_STRUCT {
        int type;
        union {
          double dval;
          int ival;
          long lval;
        } arg;
        struct NODE_STRUCT *next;
} Node;

void ExecCommandCb(Node *n);

int yyparse(void);
void yyrestart(FILE *yyin);
int yyerror(char *str);


#ifdef __cplusplus

};
#endif


#endif /* PARSE_H_INCLUDED  */




syntax highlighted by Code2HTML, v. 0.9.1