joshuamanton / sif Goto Github PK
View Code? Open in Web Editor NEWA compiler for a custom language written in C++.
A compiler for a custom language written in C++.
The integer literal
0xFFFF_FFFF_FFFF_FFFF_F
Triggers ICE.
SIF Lexer does not check for integer literal overflow.
123x456 + 2
Ignores the part of the integer after x
part, i.e. 456
.
Desired behaviour: error message should be printed
printa(1e1);
Triggers the assert that expects +
or -
after the exponent part of an integer.
The following sif code:
a: uint = -0xFFFF_FFFF_FFFF_FFFF;
printa(a);
Prints out 0
to the screen.
Note: In checker.cpp
, line 2822 we assign a negative version of int
, f32
and f64
values to the result_operand
. The uint_value
stays at zero. Either an error should be printed or the behaviour in this case should be more defined (e.g. performing the minus as if on signed integer)
Have you considered allowing default values for struct props?
struct Button {
color: string;
text := "Button";
}
myButton := Button.{"red"};
Steps to reproduce:
Result:
The linker displays the error message, then sif compiler displays "internal compiler error" message.
Expected result:
An error message from the compiler saying that .lib
file wasn't found.
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.