samtebbs33 / elk Goto Github PK
View Code? Open in Web Editor NEWA rich and concise templating language that compiles to HTML
License: GNU Lesser General Public License v3.0
A rich and concise templating language that compiles to HTML
License: GNU Lesser General Public License v3.0
The whole system should be replaced with a more modular system, consisting of a frontend, midend and backend:
An example of a syntax tree for
html {
h1: Hi!
}
would e.g. be
{
"class": "StatementBody",
"terminal": false,
"fields": [
{
"class": "Tag",
"terminal": false,
"fields": [ { "class": "ID", "terminal": true, "value": "html" },
{
"class": "StatementBody",
"terminal": false,
"fields": [
{
"class": "Tag",
"terminal": false,
"fields": [{ "class": "String", "terminal": true, "value": "hi!" }]
}
]
}
]
}
]
}
A midend mapping for a Tag could look something like:
{
"name": "Tag",
"fields": [ { "name": "id", "class": "ID" }, { "name": metadata", "class": "Metadata" }, { "name": "body", "class": "StatementBody" } ],
"mapping": "return '<$id $metadata>$body</$id>'"
}
This would make porting to other platforms (e.g. Java, C, Scala) much simpler since only the parser and backend have to be re-implemented for the new platform, rather than that as well as the mapping and class structure.
Make it possible to provide a custom equality definition that the match statement uses to decide which case(s) to follow.
`
match $x {
...
}
template sameType(a, b): return typeOf(a) == typeOf(b)
match $y by sameType {
...
}
`
There are files in the repo that need to be deleted or moved:
To delete:
To move:
The following functions should be removed or merged into others:
The builtin functions from before the rewrite need to be re-added.
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.