feral-lang / feral Goto Github PK
View Code? Open in Web Editor NEWFeral programming language reference implementation
Home Page: https://feral-lang.github.io/Book
License: MIT License
Feral programming language reference implementation
Home Page: https://feral-lang.github.io/Book
License: MIT License
I'd like to work on this just to dip my toes into the project.
Here is the current implementation of nearest_mult8 function โ
Line 14 in 9a65fe6
I'd like to shorten it to sz = (sz + 7) & ~7
and build & run tests along the way.
After playing a bit with enum
s I can see two possible improvements:
str()
function on an enumerator returns its numerical value instead of its name, which would be less confusingenum
's enumerators can be assigned, leading to an inconsistent stateExamples:
let colors = lang.enum(.red, .green, .blue);
let color = colors.green;
io.println(color); # prints 1
io.println(color.str()); # prints 1
color = 10; # no errors
io.println(color); # print 10, which is not a possible color
I still don't know enough about the internals of the language to know how to fix this, so I prefer create an issue
Need to make test cases for the Compiler and VM to verify their correct functioning, as well as make adding features/modifications easy to test for any breakage in existing system.
The tests must consist of the following components:
tests/builtin/mod.fer
)tests/multi_loops.fer
)tests/multi_loops_range.fer
)tests/multi_loops*.fer
)tests/multi_loops*.fer
)tests/facto_*.fer
)tests/facto_*.fer
)Standard Library:
Tests will be run using the assert
function, as well as using valgrind for memory leak checks.
Also:
The following things are yet to be implemented in the Feral Book.
I think the # is abolishing all existing standards in other languages, where all comments are declared by // and /* */.
Hi :)
Even though building Feral isn't too hard, I've created an installer script that builds Feral and its standard library automatically.
I thought it may be a good idea to add it to README.md
as an alternative installation option, especially for people who just want to get started real quick.
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.