Skip to content

Commit d499aa9

Browse files
authored
fix: header file name (#6)
1 parent 03fc488 commit d499aa9

10 files changed

Lines changed: 12 additions & 12 deletions

File tree

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ docs/theme
1515
# Generated using only the Github workflow
1616
benchmark_result.json
1717

18-
singleheader/lexer.h
19-
singleheader/lexer.cpp
18+
singleheader/merve.h
19+
singleheader/merve.cpp
2020

2121
#ignore VScode
2222
.vscode/

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ if(NOT MERVE_COVERAGE AND NOT EMSCRIPTEN)
131131
endif()
132132

133133
install(
134-
FILES include/lexer.h
134+
FILES include/merve.h
135135
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
136136
COMPONENT merve_development
137137
)
138138

139139
install(
140-
DIRECTORY include/lexer
140+
DIRECTORY include/merve
141141
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
142142
COMPONENT merve_development
143143
)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Copy `singleheader/merve.h` and `singleheader/merve.cpp` to your project.
3434
## Usage
3535

3636
```cpp
37-
#include "lexer.h"
37+
#include "merve.h"
3838
#include <iostream>
3939

4040
int main() {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef MERVE_H
22
#define MERVE_H
33

4-
#include "lexer/parser.h"
4+
#include "merve/parser.h"
55

66
#endif // MERVE_H
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef MERVE_PARSER_H
22
#define MERVE_PARSER_H
33

4-
#include "lexer/version.h"
4+
#include "merve/version.h"
55

66
#include <optional>
77
#include <string>

singleheader/amalgamate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
ALLCFILES = ["parser.cpp"]
3838

3939
# order matters
40-
ALLCHEADERS = ["lexer.h"]
40+
ALLCHEADERS = ["merve.h"]
4141

4242
# Output file names
4343
OUTPUT_H = "merve.h"
@@ -82,7 +82,7 @@ def dofile(fid: str, prepath: str, filename: str) -> None:
8282
s = includepattern.search(line)
8383
if s:
8484
includedfile = s.group(1)
85-
if includedfile == "lexer.h" and filename == "lexer.cpp":
85+
if includedfile == "merve.h" and filename == "merve.cpp":
8686
print(line, file=fid)
8787
continue
8888

src/lexer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#include "lexer.h"
1+
#include "merve.h"
22
#include "parser.cpp"

src/parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "lexer/parser.h"
1+
#include "merve/parser.h"
22
#include <array>
33
#include <cstdint>
44
#include <limits>

tests/real_world_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "lexer.h"
1+
#include "merve.h"
22
#include "gtest/gtest.h"
33

44
TEST(real_world_tests, esbuild_hint_style) {

0 commit comments

Comments
 (0)