eno-lang / enolib Goto Github PK
View Code? Open in Web Editor NEWAn eno parsing library available for JavaScript, Python, Ruby and Rust
Home Page: https://eno-lang.org/enolib/
License: MIT License
An eno parsing library available for JavaScript, Python, Ruby and Rust
Home Page: https://eno-lang.org/enolib/
License: MIT License
Is it possible to serialize an Eno file directly into a JavaScript object (or I missed something) ?
Would really love a C# parser if possible! This would be really great for game development, as right now data is usually stored in JSON or CSV files.
I'm trying to build the package and run the tests, but I get many failures in the analizer
folder.
For instance:
________________________________ test_tokenizer ________________________________
def test_tokenizer():
analysis = analyze(input)
> assert analysis == snapshot(analysis, 'tests/analyzer/snapshots/analyzer.snap.yaml')
E AssertionError: assert 'document: &i...8\nmeta: []\n' == 'document: &id...8\nmeta: []\n'
E Skipping 118 identical leading characters in diff, use -v to show
E - thon/tuple [8, 9]
E ? -------
E + thon/tuple
E + - 8
E + - 9
E - key: !!python/tuple [0, 8]...
E
E ...Full output truncated (275 lines hidden), use '-vv' to show
tests/analyzer/test_analyzer.py:28: AssertionError
Is it me?
# section test
hello: 123
goodbye:
- 1
- 2
-
- 4
empty:
-- multifield
this is a
multiline
field.
-- multifield
Currently getting the following error on the eno above:
/Users/dict/git/eno-extensions/node_modules/enolib/lib/context.js:245
element.computedValue = this._input.substring(
^
TypeError: this._input.substring is not a function
at Context.value (/Users/dict/git/eno-extensions/node_modules/enolib/lib/context.js:245:49)
at Field._value (/Users/dict/git/eno-extensions/node_modules/enolib/lib/elements/field.js:13:33)
at Field.optionalStringValue (/Users/dict/git/eno-extensions/node_modules/enolib/lib/elements/field.js:33:17)
at tokenizer (/Users/dict/git/eno-extensions/js/deserialize.js:48:24)
at tokenizer (/Users/dict/git/eno-extensions/js/deserialize.js:41:24)
at tokenizer (/Users/dict/git/eno-extensions/js/deserialize.js:45:24)
at tokenizer (/Users/dict/git/eno-extensions/js/deserialize.js:41:24)
at module.exports (/Users/dict/git/eno-extensions/js/deserialize.js:64:9)
at Function.Deserialize (/Users/dict/git/eno-extensions/index.js:44:10)
at Object.<anonymous> (/Users/dict/git/eno-extensions/local/t.js:8:17)
How can I produce a version of the JS lib that can be used client side? I tried Browserify and Rollup, but the outputted file still contains instances of require().
Hey there,
I really like the eno format, and am beginning use of it heavily in a few of my projects. I wanted to know if you plan on supporting eno file writer functionality in your libraries.
It would be extremely helpful not only to read in eno files, but also output them. I would like to make custom configuration files, have them modified by hand elsewhere, and then read them back in and check for changes. If necessary, I can write this functionality myself, it would just be nicer if it was an officially supported feature.
Thanks!
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.