X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=parser.h;h=80fbd984ca68fe213910df0496f3a7d112908f74;hb=686c4bc2a512a57b6c672792b6b44e2d61458dfb;hp=629b1b49a83272210f7faa1af41a7668506f54c9;hpb=fd88e359bfc753c1d4f05a9073d52c9ff417ff64;p=calc.git diff --git a/parser.h b/parser.h index 629b1b4..80fbd98 100644 --- a/parser.h +++ b/parser.h @@ -1,6 +1,10 @@ #ifndef __PARSER_H__ #define __PARSER_H__ +/* global variables */ + +extern double answer; + /* function type */ typedef enum { @@ -8,9 +12,13 @@ typedef enum { Add, Sub, Mul, Div, Mod, Pow, Sqr, - Cos, Sin, Atn, + Cos, Sin, Atan, Log, Exp, - Qui, Hel + Store, Recall, Disp, + Quit, Help, + Ans, E, Pi, + Equal, Diff, Ge, Le, Gt, Lt, + And, Or, Not } func_t; /* keyword type */ @@ -20,7 +28,7 @@ typedef struct _keyword_t { func_t func; int nbops; int offset; - int prio; + float prio; } keyword_t; /* calculus element type */