mel-florance / birdlang Goto Github PK
View Code? Open in Web Editor NEWA simple programming language built for learning
License: MIT License
A simple programming language built for learning
License: MIT License
true == true and false == false
true == true or false == false
true and true
true or true
In all cases it returns 0 but 1 (or true) is expected, it seems the evaluation is broken when using the boolean operators true and false
var x - 1
As expected I get an error
Invalid Syntax: Expected '='
and then the program crashes.
I need to investigate this, seems weird.
It probably comes from the Parser::binary_operation and its arguments.
For now, it takes two vectors for the token types and values to operate on.
But during the comparison, we need to compare either a tuple or a single value.
I need to put this in place.
Any suggestions are welcome.
var mel = PI / 4
manuel = PI * 10
var manuel = mel > 10
The last line raises an error :
terminate called after throwing an instance of 'std::bad_variant_access'
what(): std::get: wrong index for variant
Abandon (core dumped)
When entering an illegal character, the lexer display the error and crashed.
It's probably due to the parser which can't proceed properly.
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.