Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
|
|
@ -7,7 +7,7 @@
|
|||
#define max_digit 9
|
||||
|
||||
typedef struct { int num, denom; } frac_t, *frac;
|
||||
typedef enum { C_NUM = 0, C_ADD, C_SUB, C_MUL, C_DIV, } op_type;
|
||||
typedef enum { C_NUM = 0, C_ADD, C_SUB, C_MUL, C_DIV } op_type;
|
||||
|
||||
typedef struct expr_t *expr;
|
||||
typedef struct expr_t {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
(or
|
||||
((equal @Expr (@Op1 (@Op2 @A @B) (@Op3 @C @D))))
|
||||
((equal @Expr (@Op1 @A (@Op2 @B (@Op3 @C @D))))) )
|
||||
(@ = 24 (catch '("Div/0") (eval (-> @Expr)))) )
|
||||
(^ @ (= 24 (catch '("Div/0") (eval (-> @Expr))))) )
|
||||
|
||||
(de play24 (A B C D) # Define PicoLisp function
|
||||
(pilog
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue