summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-11-04 12:28:34 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-11-04 12:28:34 +0100
commit7d07bd86a130bae674348b600d13efc25942271e (patch)
tree4ce759ce522b4680182e013e44d034ed6ec46127
parent3b5a0de9e81556bc9e8bbfaf6f299de05eb82b99 (diff)
downloadcrep-7d07bd86a130bae674348b600d13efc25942271e.tar.gz
Added main, it has to start somewhere
-rw-r--r--.gitignore1
-rw-r--r--Makefile8
-rw-r--r--README.md9
-rw-r--r--main.c6
4 files changed, 23 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index bea5755..ef642e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
TAGS
+crep \ No newline at end of file
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ab1f1a9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,8 @@
+default:
+ @echo "Check targets"
+
+crep:
+ $(CC) main.c -o crep
+
+clean:
+ rm crep
diff --git a/README.md b/README.md
index 26d5a85..67943ad 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,13 @@
# crep - like grep but for code
-> Note: you should use ctags or etags. Seriously. This is an experimental thingy.
+**What is it?** If grep and etags had a baby.
+
+Note: you should use ctags or etags. Seriously. This is an experimental thingy.
- https://en.wikipedia.org/wiki/Ctags
- https://www.emacswiki.org/emacs/TagsFile
+
+## Additional resources
+
+- https://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string-search_algorithm
+- https://github.com/tree-sitter/tree-sitter
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..cde3c1a
--- /dev/null
+++ b/main.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int main() {
+ printf("Hi Mark!\n");
+ return 0;
+}