2
0

core-parser.inline.h 584 B

1234567891011121314151617181920212223
  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. syntactic.back = false;
  13. syntactic.token = TK_PREFIX;
  14. syntactic.text = "";
  15. syntactic.is_error = false;
  16. reader.readFirstWord();
  17. }
  18. }
  19. #endif //AFUN_CORE_PARSER_INLINE_H