compiler.h 549 B

12345678910111213141516171819202122
  1. /**
  2. ******************************************************************************
  3. * @file : compiler.h
  4. * @author : simon
  5. * @brief : None
  6. * @attention : None
  7. * @date : 2023/8/17
  8. ******************************************************************************
  9. */
  10. #ifndef CLOX__COMPILER_H_
  11. #define CLOX__COMPILER_H_
  12. #include "object.h"
  13. #include "vm.h"
  14. /// \brief 编译
  15. /// \param source 源代码
  16. ObjFunction* compile(const char *source);
  17. void markCompilerRoots();
  18. #endif//CLOX__COMPILER_H_