aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authors-over-42023-06-12 17:45:00 -0400
committers-over-42023-06-12 17:45:00 -0400
commit8ca9ffe9e9d9823664f0b93fcca57d1de6edf807 (patch)
tree1a12241b52945136c55f135a48d6864a17b4219a
parentc42c82d4c48a2e53e62ebd04c9ed1c03a4f42294 (diff)
halk
-rw-r--r--HALK_FINAL.svg59
-rw-r--r--Makefile20
-rw-r--r--README.md11
3 files changed, 14 insertions, 76 deletions
diff --git a/HALK_FINAL.svg b/HALK_FINAL.svg
deleted file mode 100644
index e22d772..0000000
--- a/HALK_FINAL.svg
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
- <defs>
- <style>
- .cls-1 {
- fill: #fcc73c;
- }
-
- .cls-2 {
- fill: #fe6142;
- }
-
- .cls-3 {
- fill: #9dd08e;
- }
-
- .cls-4 {
- fill: #c4c431;
- }
-
- .cls-5 {
- fill: #d73925;
- }
-
- .cls-6 {
- fill: #dfa82a;
- }
-
- .cls-7 {
- fill: #a8a521;
- }
-
- .cls-8 {
- fill: #252525;
- }
-
- .cls-9 {
- fill: #79aa7d;
- }
-
- .cls-10 {
- fill: #353535;
- }
-
- .cls-10, .cls-11 {
- font-family: HackNerdFontCompleteM-BoldItalic, 'Hack Nerd Font Mono';
- font-size: 32px;
- font-style: italic;
- font-weight: 700;
- }
- </style>
- </defs>
- <rect class="cls-8" x="-12.87" y="-7.62" width="153.74" height="143.24"/>
- <g>
- <text class="cls-10" transform="translate(22.48 73.04)"><tspan x="0" y="0">HALK</tspan></text>
- <text class="cls-11" transform="translate(24.48 72.04)"><tspan class="cls-5" x="0" y="0">H</tspan><tspan class="cls-6" x="19.27" y="0">A</tspan><tspan class="cls-7" x="38.53" y="0">L</tspan><tspan class="cls-9" x="57.8" y="0">K</tspan></text>
- <text class="cls-11" transform="translate(26.48 70.04)"><tspan class="cls-2" x="0" y="0">H</tspan><tspan class="cls-1" x="19.27" y="0">A</tspan><tspan class="cls-4" x="38.53" y="0">L</tspan><tspan class="cls-3" x="57.8" y="0">K</tspan></text>
- </g>
-</svg> \ No newline at end of file
diff --git a/Makefile b/Makefile
index 42b6fdb..5b589df 100644
--- a/Makefile
+++ b/Makefile
@@ -1,26 +1,22 @@
-binname := halk
-exec := $(binname).out
-
-compiler := clang
+name := halk
+cc := cc
flags := -g
-
sources := $(wildcard src/*.c)
sources := $(filter-out src/parser.c, $(sources)) # exclude the incomplete parser for now.
objects := $(sources:.c=.o)
-
-$(exec): $(objects)
- $(compiler) $(objects) $(flags) -o $(exec)
+$(name): $(objects)
+ $(cc) $(objects) $(flags) -o ./$(name)
%.o: %.c include/%.h
- $(compiler) -c $(flags) $< -o $@
+ $(cc) -c $(flags) $< -o $@
install:
make
- cp ./$(exec) /usr/local/bin/$(binname)
+ cp ./$(name) $(XDG_DATA_HOME)/bin/$(name)
uninstall:
- rm -f /usr/local/bin/$(binname)
+ rm -f $(XDG_DATA_HOME)/bin/$(name)
clean:
- rm -f *.out *.o src/*.o
+ rm -f ./$(name) ./src/*.o
diff --git a/README.md b/README.md
index 819dc33..cdb5f66 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# HALK
-<img src="./HALK_FINAL.svg" width="384" align="right">
+<img src="./resources/HALK_FINAL.svg" width="384" align="right">
*HALK* seeks to be a language.
@@ -15,9 +15,10 @@ As of yet, we are safe.
As you have read these words, you are to install *HALK*.
1. Clone *HALK* to a computer.
-2. `sudo make install`.
+2. `make install`.
-If you wish to remove all *HALK*-related items from your life, you can try `sudo make clean`.
+If you wish to remove all *HALK*-related items from your life, you can try `make clean`, followed
+by `make uninstall`.
# Usage
@@ -37,7 +38,7 @@ Examples can be found [here](examples/).
***HALK*** **progress:** 20%
- [x] Lexer
-- [-] Abstract Syntax Tree
-- [x] Parser
+- [~] Abstract Syntax Tree
+- [ ] Parser
- [ ] Doer
- [ ] ?? profit ??