https://github.com/andridus/erlang_v
Erlang External Term Format on V
https://github.com/andridus/erlang_v
erlang vlang
Last synced: about 1 year ago
JSON representation
Erlang External Term Format on V
- Host: GitHub
- URL: https://github.com/andridus/erlang_v
- Owner: andridus
- License: mit
- Created: 2023-06-10T12:00:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-17T15:28:01.000Z (about 3 years ago)
- Last Synced: 2025-01-29T23:29:35.442Z (over 1 year ago)
- Topics: erlang, vlang
- Language: V
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Erlang External Term Format on V
Provides an Erlang External Term Format for V.
erlang doc: http://erlang.org/doc/apps/erts/erl_ext_dist.html.
## Motivation
The library is core of Lx lang to compiles code to BeamVM, futhermore will be possible to create compatible macros within.
## The Library Erlang Terms
- ErlAtom
- ErlAtomCacheRef
- ErlAtomUTF8
- ErlBinary
- ErlBoolean
- ErlFloat
- ErlFunction
- ErlInteger32
- ErlInteger8
- ErlIntegerBig
- ErlList
- ErlMap
- ErlNil
- ErlPid
- ErlPort
- ErlReference
- ErlString
- ErlTuple
## The main functions
- binary_to_term( []u8 ) Term
- term_to_binary( Term ) []u8
- int_to_term( int ) Term
- i64_to_term( i64 ) Term
- atom_to_binary( ErlAtom ) []u8
- string_to_binary( string ) []u8
- float_to_binary( f64 ) []u8
- old_float_to_binary( f64 ) []u8 // compatibily purposes
- integer8_to_binary( i8 ) []u8
- integer32_to_binary( int ) []u8
- integer_big__to_binary( math.big.Integer ) []u8
- nil_to_binary() []u8
## Execute tests
Execute the follow command
`$ v test .`