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

Parse TL-B descriptors #14

Open
iam047801 opened this issue May 19, 2023 · 2 comments
Open

Parse TL-B descriptors #14

iam047801 opened this issue May 19, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@iam047801
Copy link
Collaborator

iam047801 commented May 19, 2023

Some contracts already have TL-B descriptions for its messages. For example, Telemint or STON.FI. Anton should be able to understand TL-B constructors to make adding new contracts as easy as Ctrl+C / Ctrl+V. Tongo library has already implemented TL-B parser and code generation of structs for messages, it can be used as a reference.

@iam047801
Copy link
Collaborator Author

Some possible tools to use for schema generation from TL-B description:

  1. ANTLR (Another Tool for Language Recognition): https://www.antlr.org
  2. PEG (Parsing Expression Grammar): https://github.com/mna/pigeon
  3. Yacc (Yet Another Compiler-Compiler): https://pkg.go.dev/golang.org/x/tools/cmd/goyacc
  4. Parsec: https://github.com/prataprc/goparsec
  5. Participle: https://github.com/alecthomas/participle

@iam047801 iam047801 added the enhancement New feature or request label May 19, 2023
@iam047801
Copy link
Collaborator Author

It is possible to just use tongo.tlb.Parser.Parse function to generate abi definitions.

stfy added a commit to stfy/anton that referenced this issue Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant