-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement parser/generator for LiNo (Links Notation) (like JSON for Links) #158
Comments
LiNo (Links Notation) Grammar:
Generated using http://pegjs.org/online |
https://github.com/otac0n/Pegasus (another possible solution) May be it is better to write links as parsing goes. And not to create intermediate object notation. |
Could be an example of indented notation, that is exactly the same as:
Possible grammar:
|
JSON: {
"users": [
{
"id": "43",
"name": {
"first": "John",
"last": "Williams"
},
"location": "New York",
"age": 23
},
{
"id": "56",
"name": {
"first": "Igor",
"middle": "Petrovich",
"last": "Ivanov"
},
"location": "Moscow",
"age": 20
}
]
} Indented LiNo:
This may be useful for keeping track of the indentation level: |
https://github.com/Konard/PegasusExample can be used to finish this. |
https://github.com/pegjs/pegjs can be used to actually parse Links Notation to JavaScript object, which then will be transfered to C# code to be loaded to associative memory storage.
The text was updated successfully, but these errors were encountered: