core-parser.inline.h 449 B

123456789101112131415161718
  1. #ifndef AFUN_CORE_PARSER_INLINE_H
  2. #define AFUN_CORE_PARSER_INLINE_H
  3. #include "core-parser.h"
  4. namespace aFuncore {
  5. Parser::Parser(Reader &reader_) : reader{reader_} {
  6. lexical.status = lex_begin;
  7. lexical.token = TK_PREFIX;
  8. lexical.last = 0;
  9. lexical.mutli_comment = 0;
  10. lexical.is_end = false;
  11. lexical.is_error = false;
  12. reader.readFirstWord();
  13. }
  14. }
  15. #endif //AFUN_CORE_PARSER_INLINE_H