An OCaml library that provides an AST and a battle-hardened parser for FunC.
The library exposes two main components:
See the complete usage example that parses FunC code to AST: driver.ml.
The parser successfully handles all real-world FunC contracts used in our tests, but some edge cases may arise due to the language's design.
If parsing fails, consider:
- Migrate to a properly designed language
- Rewrite unparsable code
- Submit a pull request with a fix
- nowarp.io: We do Security stuff in the TON ecosystem
- Community Chat: Where FunC tooling questions are on-topic