1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Add support for #pragma version and FunC versioning

FunC pragma refined error messages and ^ partials
This commit is contained in:
starlightduck 2022-05-02 02:10:21 +03:00 committed by EmelyanenkoK
parent 0e47c6c8e0
commit 0e955793ed
5 changed files with 197 additions and 4 deletions

View file

@ -38,6 +38,8 @@ extern bool op_rewrite_comments;
constexpr int optimize_depth = 20;
const std::string func_version{"0.1.0"};
enum Keyword {
_Eof = -1,
_Ident = 0,
@ -106,7 +108,8 @@ enum Keyword {
_Operator,
_Infix,
_Infixl,
_Infixr
_Infixr,
_PragmaHashtag
};
void define_keywords();