Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Написать свой токенайзер вместо github.com/bzick/tokenizer #55

Closed
4 tasks done
unhandled-exception opened this issue Oct 29, 2022 · 0 comments · Fixed by #56
Closed
4 tasks done
Assignees

Comments

@unhandled-exception
Copy link
Owner

unhandled-exception commented Oct 29, 2022

Токенайзер из github.com/bzick/tokenizer для нас избыточен. Берем идею лексера из доклада Пайка — https://www.youtube.com/watch?v=HxaD_trXwRE&t=1567 и код из https://cs.opensource.google/go/go/+/master:src/text/template/parse/lex.go и делаем свой простой лексер

  • Делаем токенайзер по заветам Пайка
  • Заменяем bzick/tokenizer в лексере на свой
  • Переделать врапер ошибок
  • Причесать код и комментарии
@unhandled-exception unhandled-exception self-assigned this Oct 29, 2022
unhandled-exception added a commit that referenced this issue Oct 29, 2022
Incorrect conversion of a 64-bit integer from to a lower bit size type int without an upper bound check.
unhandled-exception added a commit that referenced this issue Oct 30, 2022
…izer-to-inner-lib

Используем собственный токенайзер вместо bzick/tokenizer #55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant