elegaanz / rustre Goto Github PK
View Code? Open in Web Editor NEWLustre compiler and tools in Rust
Home Page: https://projets-info4.gricad-pages.univ-grenoble-alpes.fr/22-23/26/docs/html/
License: GNU General Public License v3.0
Lustre compiler and tools in Rust
Home Page: https://projets-info4.gricad-pages.univ-grenoble-alpes.fr/22-23/26/docs/html/
License: GNU General Public License v3.0
2 solutions :
rowan
's and logos
' ability to work with byte slices. That's why Path
s exist in Rust in the first place : they may not be UTF-8. Clearly the best solution if it's doable.Edit: byte slice support
logos
: should be good in theory, but I don't know if regexes work well with non-string inputrowan
: unfortunately, the GreenNode::new
constructor takes an &str
. We can try to open an issue, but if this doesn't work, it's always possible to cheat. We could for instance encode the byte slice as base64 and prepend a discriminator char. Dirty, but still better than option 2 IMO as we're not imposing our own rules.The current algorithm works well but is terribly slow. Another algorithm that should work as good and be much faster :
start = 0
end = 1
while start < src.len()
matches = tokenize(src[start..end])
if matches.len() == 1
push matches[0]
start = end
end = start + 1
else if matches.len() == 0
error "unexpected character"
else
end = end + 1
That associates an identifier with a defintion
Blocked by #4
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.