jfacorro / eden Goto Github PK
View Code? Open in Web Editor NEWedn (extensible data notation) encoder/decoder for Elixir
Home Page: http://jfacorro.github.io/Eden/
License: Other
edn (extensible data notation) encoder/decoder for Elixir
Home Page: http://jfacorro.github.io/Eden/
License: Other
Hi,
It seems that unicode characters are not parsed :
{
:id "th"
:name "Thaïlande"
:geometry #wkt "POLYGON(1 2, 3 4, 5 6, 7 8)"
}
=> FunctionClauseError
Thank you
Can you make a release of version 2.1.0
? As well as publish it to HEX?
Maybe convert your fork jfacorro/elixir-array
into a new HEX lib? like eden-array
.
Also, congrats! this is the only other non-Clojure EDN lib that I have seen that matches EDN Spec nicely!
Edn | Elixir |
---|---|
nil |
:nil = nil |
true |
:true = true |
false |
:false = false |
string |
String |
character |
ExEdn.Character |
symbol |
ExEdn.Symbol |
keyword |
Atom |
integer |
Integer |
float |
Float |
list |
List |
vector |
Array |
map |
Map |
set |
HashSet |
#inst |
Timex.DateTime |
#uuid |
ExEdn.UUID |
Character
There is no way of distinguishing a common integer from the representation of a character in a String
or in Char lists
. This forces the creation of a new representation for this type so it can be correctly translated to from and to edn.
Integer
and Float
The Erlang VM (EVM) only provides arbitrary precision integer so all integers will have this and the N
modifier will be ignored when present.
On the other hand native arbitrary precision floating point numbers are not provided by the EVM so all values of type float
will be represented according to what the EVM supports.
Keyword
and Symbol
RepresentationThe decision to translate keyword
s as atom
s on the EVM comes form the common use these two data type are given. It might get awkward really quickly using a new ExEdn.Symbol
struct as the representation for edn's symbol
s so this might change.
vector
There is no constant lookup or nearly constant indexed data structure like edn's vector
other than the :array
data structure implemented in one of Erlang's standard library modules. Until there is a better implementation for this ExEdn
will use the Array
, an Elixir wrapper library for Erlang's array.
ExEdn.Lexer
ExEdn.Parser
ExEdn
README.md
Based on the comments here.
[email protected]
to delete ex_edn
package.eden
package.A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.