mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
[FunC] Bump FunC version to v0.5.0
This commit is contained in:
parent
3520184553
commit
5867d52926
17 changed files with 19 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
||||||
// Standard library for funC
|
// Standard library for funC
|
||||||
//
|
//
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
||||||
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
;; Standard library for funC
|
;; Standard library for funC
|
||||||
;;
|
;;
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
||||||
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
;; Standard library for funC
|
;; Standard library for funC
|
||||||
;;
|
;;
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
||||||
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
// Standard library for funC
|
// Standard library for funC
|
||||||
//
|
//
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
||||||
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
;; Standard library for funC
|
;; Standard library for funC
|
||||||
;;
|
;;
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
||||||
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
;; Standard library for funC
|
;; Standard library for funC
|
||||||
;;
|
;;
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
||||||
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
;; Standard library for funC
|
;; Standard library for funC
|
||||||
;;
|
;;
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
||||||
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
;; Standard library for funC
|
;; Standard library for funC
|
||||||
;;
|
;;
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
||||||
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
;; Standard library for funC
|
;; Standard library for funC
|
||||||
;;
|
;;
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
||||||
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
;; Standard library for funC
|
;; Standard library for funC
|
||||||
;;
|
;;
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
||||||
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
// Standard library for funC
|
// Standard library for funC
|
||||||
//
|
//
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
# Tuple manipulation primitives
|
# Tuple manipulation primitives
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
;; Standard library for funC
|
;; Standard library for funC
|
||||||
;;
|
;;
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
||||||
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
;; Standard library for funC
|
;; Standard library for funC
|
||||||
;;
|
;;
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
||||||
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
;; Standard library for funC
|
;; Standard library for funC
|
||||||
;;
|
;;
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
||||||
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
;; Standard library for funC
|
;; Standard library for funC
|
||||||
;;
|
;;
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
|
||||||
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
|
||||||
|
|
|
@ -45,7 +45,7 @@ extern std::string generated_from;
|
||||||
|
|
||||||
constexpr int optimize_depth = 20;
|
constexpr int optimize_depth = 20;
|
||||||
|
|
||||||
const std::string func_version{"0.4.4"};
|
const std::string func_version{"0.5.0"};
|
||||||
|
|
||||||
enum Keyword {
|
enum Keyword {
|
||||||
_Eof = -1,
|
_Eof = -1,
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
// Standard library for funC
|
|
||||||
//
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This file is part of TON FunC Standard Library.
|
This file is part of TON FunC Standard Library.
|
||||||
|
|
||||||
|
@ -14,7 +11,10 @@
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU Lesser General Public License for more details.
|
GNU Lesser General Public License for more details.
|
||||||
|
|
||||||
|
Note, that currently stdlib.fc is distributed as a standalone file,
|
||||||
|
but since FunC v0.6.0 it will be a part of FunC installation.
|
||||||
*/
|
*/
|
||||||
|
#pragma version >=0.5.0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
# Tuple manipulation primitives
|
# Tuple manipulation primitives
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue