Rename compiler -> pattern
This commit is contained in:
parent
270509af3b
commit
44573fc224
2
Makefile
2
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)
|
||||
|
2
bp.c
2
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"
|
||||
|
@ -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"
|
Loading…
Reference in New Issue
Block a user