syntax.h 614 B

12345678910111213141516
  1. #ifndef VIRTUALMATH_SYNTAX_H
  2. #define VIRTUALMATH_SYNTAX_H
  3. #include "lexical.h"
  4. #include "token.h"
  5. void numberMather(char p, LexMather *mather);
  6. void varMather(char p, LexMather *mather);
  7. void stringMather(char p, LexMather *mather);
  8. void strMather(char p, LexMather *mather, const char *dest_p);
  9. void charMather(char p, LexMather *mather, char dest_p);
  10. #define strMatherMacro(n, word) strMather(p, mathers->mathers[n], word) /*这个宏只能用于getMatherStatus*/
  11. #define charMatherMacro(n, word) charMather(p, mathers->mathers[n], word) /*这个宏只能用于getMatherStatus*/
  12. #endif //VIRTUALMATH_SYNTAX_H