mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Add namespaces to Fift (#641)
* Add fift-based disassembler * Fift improvements: namespaces, hashmaps, flow controls * Fift: add lib with better block structuring and more * Minor changes in fift HashMap + tests (#643) * Minor changes in fift HashMap * Add tests for extended fift --------- Co-authored-by: OmicronTau <omicron@ton.org> Co-authored-by: Tolya <1449561+tolya-yanot@users.noreply.github.com> Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
parent
4590ed381b
commit
865ebfce8d
31 changed files with 2323 additions and 699 deletions
29
crypto/test/fift/namespaces.fif
Normal file
29
crypto/test/fift/namespaces.fif
Normal file
|
@ -0,0 +1,29 @@
|
|||
namespace My
|
||||
|
||||
"a" constant a
|
||||
"b" constant b
|
||||
"c" constant c
|
||||
|
||||
a b c .s { drop } 3 times // "a" "b" "c"
|
||||
|
||||
My definitions
|
||||
"b-my" constant b
|
||||
"c-my" constant c
|
||||
"d-my" constant d
|
||||
|
||||
a b c d .s { drop } 4 times // "a" "b-my" "c-my" "d-my"
|
||||
|
||||
Fift definitions
|
||||
a b c .s { drop } 3 times // "a" "b-my" "c-my" "d-my"
|
||||
|
||||
My b My c My d .s { drop } 3 times // "b-my" "c-my" "d-my"
|
||||
a b c .s { drop } 3 times // "a" "b" "c" "d"
|
||||
|
||||
My definitions
|
||||
a b c d .s { drop } 4 times // "a" "b-my" "c-my" "d-my"
|
||||
Fift a Fift b Fift c d .s { drop } 4 times // "a" "b" "c" "d-my"
|
||||
|
||||
Fift definitions
|
||||
cr
|
||||
My-wordlist @
|
||||
{ drop type -1 } hmapforeach drop cr // "b " "d " "c "
|
Loading…
Add table
Add a link
Reference in a new issue