ton-society / grants-and-bounties

TON Foundation invites talent to imagine and realize projects that have the potential to integrate with the daily lives of users.

Home Page:https://ton.org/grants

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create typed AST nodes for `tlb-parser` project

sobolevn opened this issue · comments

Summary

  • After #70 we need to add AST nodes we parse our code into
  • They should be semantic and type-safe

Context

No response

Goals

  • Rewrite grammar 5 times to be semantic and compatible with ohmjs own parser and semantics' actions
  • Read all the C++ source code at least 10 times to figure out how it really works
  • Figure out all bizzare rules there are depending on a global state and specific values
  • Write test cases for all the corner cases
  • Ensure error message are at least some-what correct
  • Find any tlbc binary that even works to test real tlb definitions
  • Design and create semantic and type-safe structures that will match tlb spec, oh wait there's no spec!!! So, good luck with the design
  • Write parser from the intermediate representation into tlb's ast
  • Try to stay sane in the process

Deliverables

  • Code at github.com/ton-community/tlb-parser

Definition of Done

  • PR is merged

Reward

2000$ worth of TON on the moment of footstep completion.

Total: $2000

LGTM