Init repo
This commit is contained in:
commit
1845618e8d
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cclox
|
||||||
|
clox
|
19
Makefile
Normal file
19
Makefile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
CC = clang
|
||||||
|
CXX = clang++
|
||||||
|
CFLAGS = -Wall -Wextra -Werror -pedantic -g
|
||||||
|
|
||||||
|
CCLOX_SRC = cclox_src/*.cc
|
||||||
|
CCLOX_OUT = cclox
|
||||||
|
|
||||||
|
CLOX_SRC = clox_src/*.c
|
||||||
|
CLOX_OUT = clox
|
||||||
|
|
||||||
|
.PHONY: all cclox clox
|
||||||
|
|
||||||
|
all: cclox clox
|
||||||
|
|
||||||
|
cclox: ${CCLOX_SRC}
|
||||||
|
${CXX} ${CFLAGS} ${CCLOX_SRC} -o ${CCLOX_OUT}
|
||||||
|
|
||||||
|
clox: ${CLOX_SRC}
|
||||||
|
${CC} ${CFLAGS} ${CLOX_SRC} -o ${CLOX_OUT}
|
3
README.md
Normal file
3
README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Crafting Interpreters
|
||||||
|
|
||||||
|
Following along with Robert Nystrom's [Crafting Interpreters](https://craftinginterpreters.com/contents.html)
|
6
cclox_src/main.cc
Normal file
6
cclox_src/main.cc
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include <cstdio>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
printf("Hello from cclox\n");
|
||||||
|
return 0;
|
||||||
|
}
|
6
clox_src/main.c
Normal file
6
clox_src/main.c
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
printf("Hello from clox\n");
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user