aszecsei / catlang Goto Github PK
View Code? Open in Web Editor NEWa programming language
Home Page: https://aszecsei.github.io/catlang/
License: MIT License
a programming language
Home Page: https://aszecsei.github.io/catlang/
License: MIT License
Currently, numbers are assumed to be integers. We should check for the inclusion of a decimal point, and if found, interpret the value as a floating point number instead.
In addition, we should decide whether floating-point literals can start with a decimal point: should ".27" be interpreted as "0.27"?
volatile
and const
should both be able to modify types.
When looking at a number literal, we want to parse it into a number that Go understands, so that later stages of the compiler can use them. This value should only be stored in tokens for number literals.
Need to decide on syntax for interfaces.
Generic type parameters should be applicable to structs and functions. Should also finalize syntax for declaring generic type constraints.
Enums should be able to be backed by any numeric type:
enum Alignment: U32 {
Left, // 0
Right = 12, // 12
Center, // 13
}
Currently, enums are not able to be backed by a value or have their members be assigned a value.
Should build a pratt parser for expressions instead of continuing with recursive-descent.
We can optimize the memory footprint of the compiler by creating an array of literal strings. Then, each token will simply reference an element in that array (either an existing one or creating a new one as necessary) as its literal value, rather than each token owning its own literal value string. Thus, re-used identifiers (of which there are usually many) will not create duplicate strings in memory.
Need to implement the language server as a sub-command.
Useful crates:
Decide on syntax for error handling. Leaning towards a Rust-like Result<TSuccess, TError>
strategy - definitely no exception handling. Panic should be available.
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.