muon-data / muon Goto Github PK
View Code? Open in Web Editor NEWMuON data interchange specification
License: Creative Commons Attribution Share Alike 4.0 International
MuON data interchange specification
License: Creative Commons Attribution Share Alike 4.0 International
When the muon file has error, the error reuslt showing to user like this: Error: FailedParse(ExpectedInt), but can't locate which line has error.
This would include Rust-style enums (or C-Style union + tag):
:::
character: choice
Person: list text
Animal: text
Spirit: int
:::
character:
Person: multiple text
character:
Animal: fox
character:
Spirit: 5
For C-Style enums, an type in schema can be omitted and shortcut could be used:
:::
switch_a: choice Direction
Forward
Neutral
Backward
switch_b: choice Direction
:::
switch_a: Neutral
switch_b: Forward
You can also mix variants with associated data with ones that don't have any:
:::
thing: list choice
None
Red: record
value: int
name: text
Blue: int
Nothing
:::
thing: None
thing:
Red: 10
name: Bright
thing: Nothing
thing:
Blue: 25
@DougLau thoughts?
edit: Rename union
to choice
, add mixed associated data and without associated data example.
I'm thinking adding repositories to this organization for:
To cover some of the more popular ones. It might be cool to do bindings to muon-rs, but I'm unsure of how that would work with serde (maybe an alternate C API crate?).
A decision needs to be made on how to handle them.
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.