| Crates.io | etcetera-compiler |
| lib.rs | etcetera-compiler |
| version | 0.1.3 |
| created_at | 2025-07-22 11:38:17.308585+00 |
| updated_at | 2025-08-26 07:19:39.273276+00 |
| description | A Rust-based compiler project. |
| homepage | |
| repository | https://github.com/nomander17/etcetera-compiler |
| max_upload_size | |
| id | 1763440 |
| size | 117,853 |
A programming language written in Rust using LLVM.
This project depends on the following external tools:
cargo run -- example.etc --run
cargo install etcetera-compiler
Then use using the etc command.
llc, clang) assembles a standalone binary.my_var: int = 5).int, float, char, string, boolint and float.+, -, *, /, // (floor division), % (modulo).==, !=, >, >=, <, <=.if then else statements and loop from to loops.print.! and multi-line !! ... !! comments.example.etc file:
! Single line comment
!! Multiline comment
like this !!
! Variables can be initialised with a type
a: int = 5
! Or auto inferred based on expression
b = 10.5
! Re-assignment also possible
b = 1.5
! Use variables in expressions with $
sum = $a + $b
! Print doesn't require $
! Use + for string concat
print "Sum: " + sum
!! Newlines and tabs are completely optional
but may be used for style !!
if a > b then
print a + " is bigger than " + b
else
print b + " is bigger than " + a
end if
! Loops are inclusive and auto-initialise the loop variable
loop from 1 to 5 in i
print $i
end loop
More programs are available in /programs.