vurv78 / expressionscript Goto Github PK
View Code? Open in Web Editor NEWExpression2 rewritten in Haxe
Home Page: https://vurv78.github.io/ExpressionScript
License: Apache License 2.0
Expression2 rewritten in Haxe
Home Page: https://vurv78.github.io/ExpressionScript
License: Apache License 2.0
We should be able to enable --macro nullSafety("base", Strict)
Without any errors
Expression4 link -> Expressive
For some reason even though we accept a comma token it won't move past there. It will instead stay at the comma and not be able to accept a type token.
Repro
E[1,number]
"#"
Will break because the preprocessor just scans for hashtags without considering if they are inside a string.
Finished up the work on the wiremod repo, this will have to wait until the Compiler is in a working state
Recently merged into the E2 compiler.
E2 handles constants through the tokenizer which is just really weird and unintuitive. (We mirrored that for now and it works fine but it feels gross)
Since this is in Haxe, I could just compile this to javascript and deploy to github pages at https://vurv78.github.io/ExpressionScript.
Then everyone could try it out. Would just be the transpiler for now.. for obvious reasons
We don't want dynamic typing anywhere (It slows down statically typed targets (C++, Hashlink) by a LOT)
Here's where it's used
call
instructionAdd another statement in the parser that accepts #include "path"
. (Might also need to add a new keyword to tokenizer)
See https://github.com/wiremod/wire/wiki/Expression-2#include-directive for more info on what include is.
( It is basically just #include from languages like C++, except it is not through the preprocessor but it is turned into a function that runs in another scope.. yeah it's weird.. )
If you really want to go above and beyond you can also implement it in the lua transpiler side as just require(string)
.
Hashlink is miles ahead of c++ for Haxe. Looks like it takes 1/10th of the time to compile, all into one neat file.
Giving cryptic errors that I don't want to bother looking into right now.
Would be much nicer
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.