diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-15 19:32:37 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-15 19:32:37 -0800 |
| commit | 44573fc224796f712254d7ff7fdc0a87aeb6a84c (patch) | |
| tree | c19bd97e082f54d5a73846fb5b8b6fcb295c74dc | |
| parent | 270509af3bb0546abd3265d6b19cb12f975d14a7 (diff) | |
Rename compiler -> pattern
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | bp.c | 2 | ||||
| -rw-r--r-- | grammar.c | 2 | ||||
| -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
@@ -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) @@ -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" @@ -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" @@ -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) @@ -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" |
