Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

37 Commits

Repository files navigation

FunCompiler

An extension to the UofG compiler for the fun programming language written in java.

Built using the ANTLR framework

Switch statement example

proc main ():
bool n = true
int v = 0
switch n:
case5..9:
v = v + 1
write(n)
write(5)
.
case122:
v = 68
.
default:
v = 8
.
.
write(v)
.

Repeat until example

proc main ():
int v = 0
repeat-until v - 100 > 0:
v = (v + 10) * 2
write(v)
.
.

About

Extension to the UofG Fun compiler

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages