compiler.h 510 B

1234567891011121314151617181920
  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 "vm.h"
  13. /// \brief 编译
  14. /// \param source 源代码
  15. bool compile(const char *source, Chunk *chunk);
  16. #endif //CLOX__COMPILER_H_