From 7d07bd86a130bae674348b600d13efc25942271e Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 4 Nov 2023 12:28:34 +0100 Subject: Added main, it has to start somewhere --- .gitignore | 1 + Makefile | 8 ++++++++ README.md | 9 ++++++++- main.c | 6 ++++++ 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 Makefile create mode 100644 main.c 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 + +int main() { + printf("Hi Mark!\n"); + return 0; +} -- cgit v1.2.3