add hidden option
[calc.git] / parser.h
index 156a52648efdfa2df0b82a8e9d2218ac28a059c0..eed45f679d14585706f9e5eca3200143c16ac533 100644 (file)
--- a/parser.h
+++ b/parser.h
@@ -20,7 +20,7 @@ typedef enum {
     Ans, E, Pi,
     Equal, Diff, Ge, Le, Gt, Lt,
     And, Or, Not,
-    Cond, While, Prog
+    Cond, While, Prog, Print
 } func_t;
 
 /* keyword type */
@@ -41,6 +41,7 @@ typedef struct _element_t {
     struct _element_t **ops;
     double value;
     int prio;
+    int hidden;
 } element_t;
 
 #define ERROR_OP ((element_t *)(-1))
@@ -55,6 +56,20 @@ void print_element (element_t *root, int level);
 
 double evaluate_element (element_t *root, char mask);
 
+/* completion functions */
+
+char **generate_completion_list ();
+
+void free_completion_list (char **list);
+
+/* print function */
+
+void set_format (char *prompt, int precision);
+
+void free_format ();
+
+double print (double value);
+
 #endif /* __PARSER_H__ */
 
 /* vim: set ts=4 sw=4 et: */