justlucdewit / cod Goto Github PK
View Code? Open in Web Editor NEWcod programming language
Home Page: https://www.codlang.com
cod programming language
Home Page: https://www.codlang.com
Includes another .cod file based on a relative path, this will just copy paste the contents in the pre processor
Includes will be writte like include "some/path/to/a/library.cod"
// Creating value
<value> set::test
// Changing the value
get::test 5 + set::test
First there needs to be some concepts of true and false, true and false will be built in aliases for 1 and 0
alias true 1
alias false 0
The we also need some sort of equality checking operators, which will be:
=
Aliases are words that are aliases for some other word or number, they are notated using alias x y
meaning there will be a new word named x, which is the same as the already existing word y.
Proper README
Subroutines are like macros, except they dont simply get replaced, but rather they are compiled to C functions which can then be called. Making the executable more efficient
we already have decimal, but i also want
Either
raw "// c code goes here"
Make the CLI support flags and options like --watch --version --verbose --time etc
- + / *
Some words that can interface with the malloc() free() and realloc() functions of C, this will include the following new words:
pops the top value of the stack and reserves that many bytes, and pushes back a pointer to that memory
pops the top value of the stack and uses that as a pointer to free
pops the top value of the stack and uses that as a pointer to realloc, and then pops another value of the stack and uses that as the new buffer size
argc
word will push argcargv
word will push argv pointerComments should be removed in some sort of pre-processor, and ignored, comments will be notated using -- this a comment
and will then be ignored
Kinda like if statements, but it will repeat the block until the top value of the stack is no longer true
Example
10
while {
printn
1 -
}
Strings can be pushed to the stack just like numbers, but in reality it will just simply put the string somewhere in memory and then push
These strings can be written like "" and '', can \ can be used as escape charachters just like in other programming languages like python and javascript.
Update the repo to announce it will be bootstrapped, and add a contribution section where hacktoberfest members are welcomed
Macros are kinda like aliases, except they can be an alias for multiple words including if statements and loops. they are written like.
macro x {
a b c
}
Where there will be a new word created named 'x' which will be an alias for the words a, b and then c.
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.