casc-lang / casc-jit Goto Github PK
View Code? Open in Web Editor NEWa handwritten compiler which can compile English or Manderin or even mixed codes!
License: MIT License
a handwritten compiler which can compile English or Manderin or even mixed codes!
License: MIT License
Title.
Title.
needs to move manderin operator to keyword parse part since it's a multi-character keyword and it's a letter obviously.
Point operator should only takes two integer but it does take float, that's not how it should work.
Title
So
> 一加八開方三
will cause a casting crash.
Consider we have following CASC script:
let a = [100, 100, [100]]
print(a[0])
This will print out 100, and a[0] is obviously a number type.
But for now, script a[0]
in binding phase is not detected as number type but array type, this is mostly compiler doesn't store array contents' type.
Possible soultion:
Store array contents' type info with VariableSymbol.
Fine:
type([[1]])
Predict: array<array<number>>
Actual: array<array<number>>
Problem:
type([[[1]]])
Predict: array<array<array<number>>>
Actual: array<any>
Title,
BoundTreeRewriter and CFG need to be rewritten.
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.