expr_loc.h 958 B

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. void dot2expr(struct expr **expp);
  10. void idf2expr(struct expr *expr);
  11. void string2expr(struct expr **expp, char *str, int len);
  12. void int2expr(struct expr *expr);
  13. void float2expr(struct expr *expr);
  14. struct expr *intexpr(arith ivalue, int fund);
  15. void fill_int_expr(struct expr *ex, arith ivalue, int fund);
  16. struct expr *new_oper(struct type *tp, struct expr *e1, int oper, struct expr *e2);
  17. void chk_cst_expr(struct expr **expp);
  18. void init_expression(struct expr ***eppp, struct expr *expr);
  19. int is_ld_cst(struct expr *expr);
  20. int is_cp_cst(struct expr *expr);
  21. int is_fp_cst(struct expr *expr);
  22. int is_zero_cst(struct expr *expr);
  23. void free_expression(struct expr *expr);
  24. #endif /* LANG_CEM_CEMCOM_ANSI_EXPR_H */