This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
y = x | |
z = 3 + y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
z = 3 + x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
target … : dependency … | |
command | |
… | |
… |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: run | |
run: m.cmo error.cmo lexer.cmo parser.cmo main.cmo | |
ocamlc -o run m.cmo error.cmo lexer.cmo parser.cmo pp.cmo main.cmo | |
error.cmo : error.ml m.cmo | |
ocamlc -c error.ml | |
m.cmo : m.ml | |
ocamlc -c m.ml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: all clean | |
all: | |
ocamlbuild -use-ocamlfind main.native | |
clean: | |
ocamlbuild -clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = b * c + g; | |
d = b * c * e; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmp = b * c; | |
a = tmp + g; | |
d = tmp * e; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int a = 30; | |
int b = 9 - (a / 5); | |
int c; | |
c = b * 4; | |
if (c > 10) { | |
c = c - 10; | |
} | |
return c * (60 / a); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int a = 30; | |
int b = 3; | |
int c; | |
c = b * 4; | |
if (c > 10) { | |
c = c - 10; | |
} | |
return c * 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int a = 30; | |
int b = 3; | |
int c; | |
c = 12; | |
if (true) { | |
c = 2; | |
} | |
return c * 2; |
OlderNewer