aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-15 19:32:37 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-15 19:32:37 -0800
commit44573fc224796f712254d7ff7fdc0a87aeb6a84c (patch)
treec19bd97e082f54d5a73846fb5b8b6fcb295c74dc
parent270509af3bb0546abd3265d6b19cb12f975d14a7 (diff)
Rename compiler -> pattern
-rw-r--r--Makefile2
-rw-r--r--bp.c2
-rw-r--r--grammar.c2
-rw-r--r--pattern.c (renamed from compiler.c)4
-rw-r--r--pattern.h (renamed from compiler.h)6
5 files changed, 8 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 16d3c94..8be4594 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ G=
O=-O3
ALL_FLAGS=$(CFLAGS) -DBP_NAME="\"$(NAME)\"" $(EXTRA) $(CWARN) $(G) $(O)
-CFILES=compiler.c grammar.c utils.c match.c files.c print.c json.c
+CFILES=pattern.c grammar.c utils.c match.c files.c print.c json.c
OBJFILES=$(CFILES:.c=.o)
all: $(NAME)
diff --git a/bp.c b/bp.c
index 404be02..bbc1b36 100644
--- a/bp.c
+++ b/bp.c
@@ -12,7 +12,7 @@
#include <string.h>
#include <unistd.h>
-#include "compiler.h"
+#include "pattern.h"
#include "files.h"
#include "grammar.h"
#include "json.h"
diff --git a/grammar.c b/grammar.c
index 66103eb..e6e2e0a 100644
--- a/grammar.c
+++ b/grammar.c
@@ -5,7 +5,7 @@
#include <stdlib.h>
#include <string.h>
-#include "compiler.h"
+#include "pattern.h"
#include "files.h"
#include "grammar.h"
#include "utils.h"
diff --git a/compiler.c b/pattern.c
index 1ecea11..a065f3f 100644
--- a/compiler.c
+++ b/pattern.c
@@ -1,5 +1,5 @@
//
-// compiler.c - Compile strings into BP virtual machine code.
+// pattern.c - Compile strings into BP pattern objects that can be matched against.
//
#include <ctype.h>
@@ -7,7 +7,7 @@
#include <string.h>
#include <unistd.h>
-#include "compiler.h"
+#include "pattern.h"
#include "utils.h"
#define file_err(f, ...) do { fprint_line(stderr, f, __VA_ARGS__); exit(1); } while(0)
diff --git a/compiler.h b/pattern.h
index 3038d09..933eb83 100644
--- a/compiler.h
+++ b/pattern.h
@@ -1,8 +1,8 @@
//
-// compiler.h - Header file for BP compiler.
+// pattern.h - Header file for BP pattern compilation.
//
-#ifndef COMPILER__H
-#define COMPILER__H
+#ifndef PATTERN__H
+#define PATTERN__H
#include "files.h"
#include "types.h"