expr_loc.h 1.0 KB

123456789101112131415161718192021222324252627
  1. /*
  2. * The Amsterdam Compiler Kit
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. #ifndef LANG_CEM_CEMCOM_ANSI_EXPR_H
  6. #define LANG_CEM_CEMCOM_ANSI_EXPR_H
  7. /* lang/cem/cemcom.ansi/expr.c */
  8. int rank_of(int oper);
  9. int dot2expr(struct expr **expp);
  10. int idf2expr(register struct expr *expr);
  11. int string2expr(register struct expr **expp, char *str, int len);
  12. int int2expr(struct expr *expr);
  13. int float2expr(register struct expr *expr);
  14. struct expr *intexpr(arith ivalue, int fund);
  15. int fill_int_expr(register struct expr *ex, arith ivalue, int fund);
  16. struct expr *new_oper(struct type *tp, register struct expr *e1, int oper, register struct expr *e2);
  17. int chk_cst_expr(struct expr **expp);
  18. int init_expression(register struct expr ***eppp, struct expr *expr);
  19. int is_ld_cst(register struct expr *expr);
  20. int is_cp_cst(struct expr *expr);
  21. int is_fp_cst(struct expr *expr);
  22. int is_zero_cst(register struct expr *expr);
  23. int free_expression(register struct expr *expr);
  24. #endif /* LANG_CEM_CEMCOM_ANSI_EXPR_H */