summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore6
-rw-r--r--Makefile14
-rw-r--r--g.peg (renamed from grammar.peg)0
-rw-r--r--read.h2
4 files changed, 11 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
index 08476bc..276812f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-parser.c
-parser.h
-badthing
+prs.c
+prs.h
+bþ
vm
diff --git a/Makefile b/Makefile
index 0160897..696587b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,14 @@
-CS=ast.c com.c dis.c parser.c read.c val.c vm.c
-HS=ast.h dis.h parser.h read.h val.h vm.h
+CS=ast.c com.c dis.c prs.c read.c val.c vm.c
+HS=ast.h dis.h prs.h read.h val.h vm.h
CFLAGS=-O3 -Wall -Wpedantic -Werror=implicit-function-declaration
-badthing: $(CS) $(HS)
- $(CC) $(CFLAGS) -o badthing $(CS)
+bþ: $(CS) $(HS)
+ $(CC) $(CFLAGS) -o bþ $(CS)
-parser.c: grammar.peg
- packcc -o parser grammar.peg
+prs.c: g.peg
+ packcc -o prs g.peg
clean:
- rm badthing parser.c
+ rm bþ prs.c prs.h
.PHONY: clean
diff --git a/grammar.peg b/g.peg
index 3c75ab9..3c75ab9 100644
--- a/grammar.peg
+++ b/g.peg
diff --git a/read.h b/read.h
index 80f0261..b47edb0 100644
--- a/read.h
+++ b/read.h
@@ -1,7 +1,7 @@
#ifndef _read_h
#define _read_h
-#include "parser.h"
+#include "prs.h"
#include "ast.h"
AstNode read();