fnune / vampa

An attempt at writing a programming language
5 stars 0 forks source link

Thread with programs that compile and run #3

Open fnune opened 3 years ago

fnune commented 3 years ago
watchexec --clear --exts vam 'RUST_BACKTRACE=1 vamc program.vam && echo "" && echo "Result:" && lli ./program.o; echo $?'
#[ A block comment #]

fun three returning i32 = 3;

apply three

Returning exit code 3.

fnune commented 3 years ago
fun three returning i32 = 3;

#[
# Hey there
# This is my block comment
#
# #[
# # This is a nested block comment
# # Hey there
# #]
#]

apply three

Returning exit code 3.

fnune commented 3 years ago
fun three returning i32 = { 3 };

apply three

Returning exit code 3.