aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-09-05 17:14:53 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2026-09-06 13:11:48 +0200
commitb7052e17a426b22c1c48b0d50bf169c3c3bbdda0 (patch)
tree20f446e239856887f9c84dfd522acf4f5c14270f
parent3d55352ca4e7fbe9c2e919696f85328433385235 (diff)
downloadprc-b7052e17a426b22c1c48b0d50bf169c3c3bbdda0.tar.gz
Move source to src/prc1
-rw-r--r--CMakeLists.txt42
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/prc1/CMakeLists.txt39
-rw-r--r--src/prc1/call.c (renamed from call.c)0
-rw-r--r--src/prc1/call.h (renamed from call.h)0
-rw-r--r--src/prc1/cgen.c (renamed from cgen.c)0
-rw-r--r--src/prc1/cgen.h (renamed from cgen.h)0
-rw-r--r--src/prc1/display.c (renamed from display.c)0
-rw-r--r--src/prc1/display.h (renamed from display.h)0
-rw-r--r--src/prc1/div.c (renamed from div.c)0
-rw-r--r--src/prc1/div.h (renamed from div.h)0
-rw-r--r--src/prc1/end.c (renamed from end.c)0
-rw-r--r--src/prc1/end.h (renamed from end.h)0
-rw-r--r--src/prc1/errloc.c (renamed from errloc.c)0
-rw-r--r--src/prc1/errloc.h (renamed from errloc.h)0
-rw-r--r--src/prc1/exit.c (renamed from exit.c)0
-rw-r--r--src/prc1/exit.h (renamed from exit.h)0
-rw-r--r--src/prc1/fn.c (renamed from fn.c)0
-rw-r--r--src/prc1/fn.h (renamed from fn.h)0
-rw-r--r--src/prc1/from.c (renamed from from.c)0
-rw-r--r--src/prc1/from.h (renamed from from.h)0
-rw-r--r--src/prc1/gl.c (renamed from gl.c)0
-rw-r--r--src/prc1/gl.h (renamed from gl.h)0
-rw-r--r--src/prc1/im.c (renamed from im.c)0
-rw-r--r--src/prc1/im.h (renamed from im.h)0
-rw-r--r--src/prc1/kw.c (renamed from kw.c)0
-rw-r--r--src/prc1/lex.c (renamed from lex.c)0
-rw-r--r--src/prc1/lex.h (renamed from lex.h)0
-rw-r--r--src/prc1/lit.c (renamed from lit.c)0
-rw-r--r--src/prc1/lit.h (renamed from lit.h)0
-rw-r--r--src/prc1/lk.c (renamed from lk.c)0
-rw-r--r--src/prc1/lk.h (renamed from lk.h)0
-rw-r--r--src/prc1/parse.c (renamed from parse.c)0
-rw-r--r--src/prc1/parse.h (renamed from parse.h)0
-rw-r--r--src/prc1/pop.c (renamed from pop.c)0
-rw-r--r--src/prc1/pr.c (renamed from pr.c)0
-rw-r--r--src/prc1/pr.h (renamed from pr.h)0
-rw-r--r--src/prc1/prc1.c (renamed from main.c)0
-rw-r--r--src/prc1/print.c (renamed from print.c)0
-rw-r--r--src/prc1/print.h (renamed from print.h)0
-rw-r--r--src/prc1/prv.h (renamed from prv.h)0
-rw-r--r--src/prc1/push.c (renamed from push.c)0
-rw-r--r--src/prc1/sdup.c (renamed from sdup.c)0
-rw-r--r--src/prc1/set.c (renamed from set.c)0
-rw-r--r--src/prc1/set.h (renamed from set.h)0
-rw-r--r--src/prc1/stmt.c (renamed from stmt.c)0
-rw-r--r--src/prc1/stmt.h (renamed from stmt.h)0
-rw-r--r--src/prc1/storage.c (renamed from storage.c)0
-rw-r--r--src/prc1/storage.h (renamed from storage.h)0
-rw-r--r--src/prc1/td.c (renamed from td.c)0
-rw-r--r--src/prc1/td.h (renamed from td.h)0
-rw-r--r--src/prc1/tmp.c (renamed from tmp.c)0
-rw-r--r--src/prc1/tmp.h (renamed from tmp.h)0
-rw-r--r--src/prc1/type.c (renamed from type.c)0
-rw-r--r--src/prc1/type.h (renamed from type.h)0
-rw-r--r--src/prc1/warn.c (renamed from warn.c)0
-rw-r--r--src/prc1/warn.h (renamed from warn.h)0
-rw-r--r--src/prc1/ws.c (renamed from ws.c)0
-rw-r--r--src/prc1/ws.h (renamed from ws.h)0
59 files changed, 42 insertions, 41 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 899e223..8ff5c3c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,43 +1,3 @@
cmake_minimum_required(VERSION 3.5)
project(prc C)
-add_executable(${PROJECT_NAME}
- call.c
- cgen.c
- display.c
- div.c
- end.c
- errloc.c
- exit.c
- fn.c
- from.c
- gl.c
- im.c
- kw.c
- lex.c
- lit.c
- lk.c
- main.c
- set.c
- parse.c
- pop.c
- pr.c
- print.c
- push.c
- sdup.c
- stmt.c
- storage.c
- td.c
- tmp.c
- type.c
- warn.c
- ws.c
-)
-
-target_compile_options(${PROJECT_NAME} PRIVATE -g -Wall -pedantic)
-set_target_properties(${PROJECT_NAME} PROPERTIES C_STANDARD 99 C_EXTENSIONS OFF)
-
-if(CMAKE_BUILD_TYPE STREQUAL "Debug")
- target_compile_options(${PROJECT_NAME} PRIVATE -Og)
-endif()
-
-install(TARGETS ${PROJECT_NAME})
+add_subdirectory(src)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..e8df6c6
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_subdirectory(prc)
+add_subdirectory(prc1)
diff --git a/src/prc1/CMakeLists.txt b/src/prc1/CMakeLists.txt
new file mode 100644
index 0000000..3579ca6
--- /dev/null
+++ b/src/prc1/CMakeLists.txt
@@ -0,0 +1,39 @@
+add_executable(prc1
+ call.c
+ cgen.c
+ display.c
+ div.c
+ end.c
+ errloc.c
+ exit.c
+ fn.c
+ from.c
+ gl.c
+ im.c
+ kw.c
+ lex.c
+ lit.c
+ lk.c
+ prc1.c
+ set.c
+ parse.c
+ pop.c
+ pr.c
+ print.c
+ push.c
+ sdup.c
+ stmt.c
+ storage.c
+ td.c
+ tmp.c
+ type.c
+ warn.c
+ ws.c
+)
+
+target_compile_options(prc1 PRIVATE -g -Wall -pedantic)
+set_target_properties(prc1 PROPERTIES C_STANDARD 99 C_EXTENSIONS OFF)
+if(CMAKE_BUILD_TYPE STREQUAL "Debug")
+ target_compile_options(prc1 PRIVATE -Og)
+endif()
+# install(TARGETS prc1)
diff --git a/call.c b/src/prc1/call.c
index 8140eba..8140eba 100644
--- a/call.c
+++ b/src/prc1/call.c
diff --git a/call.h b/src/prc1/call.h
index 0126e7f..0126e7f 100644
--- a/call.h
+++ b/src/prc1/call.h
diff --git a/cgen.c b/src/prc1/cgen.c
index 44e9d24..44e9d24 100644
--- a/cgen.c
+++ b/src/prc1/cgen.c
diff --git a/cgen.h b/src/prc1/cgen.h
index 0a30138..0a30138 100644
--- a/cgen.h
+++ b/src/prc1/cgen.h
diff --git a/display.c b/src/prc1/display.c
index 885fbe7..885fbe7 100644
--- a/display.c
+++ b/src/prc1/display.c
diff --git a/display.h b/src/prc1/display.h
index 9b073b1..9b073b1 100644
--- a/display.h
+++ b/src/prc1/display.h
diff --git a/div.c b/src/prc1/div.c
index 9061ac6..9061ac6 100644
--- a/div.c
+++ b/src/prc1/div.c
diff --git a/div.h b/src/prc1/div.h
index 8a0df6d..8a0df6d 100644
--- a/div.h
+++ b/src/prc1/div.h
diff --git a/end.c b/src/prc1/end.c
index b9ad790..b9ad790 100644
--- a/end.c
+++ b/src/prc1/end.c
diff --git a/end.h b/src/prc1/end.h
index 5286f4f..5286f4f 100644
--- a/end.h
+++ b/src/prc1/end.h
diff --git a/errloc.c b/src/prc1/errloc.c
index 1f3e224..1f3e224 100644
--- a/errloc.c
+++ b/src/prc1/errloc.c
diff --git a/errloc.h b/src/prc1/errloc.h
index 127caa7..127caa7 100644
--- a/errloc.h
+++ b/src/prc1/errloc.h
diff --git a/exit.c b/src/prc1/exit.c
index 0438b66..0438b66 100644
--- a/exit.c
+++ b/src/prc1/exit.c
diff --git a/exit.h b/src/prc1/exit.h
index 24b1292..24b1292 100644
--- a/exit.h
+++ b/src/prc1/exit.h
diff --git a/fn.c b/src/prc1/fn.c
index c2d3b4f..c2d3b4f 100644
--- a/fn.c
+++ b/src/prc1/fn.c
diff --git a/fn.h b/src/prc1/fn.h
index 6c65ae5..6c65ae5 100644
--- a/fn.h
+++ b/src/prc1/fn.h
diff --git a/from.c b/src/prc1/from.c
index b9cb99e..b9cb99e 100644
--- a/from.c
+++ b/src/prc1/from.c
diff --git a/from.h b/src/prc1/from.h
index 8a77629..8a77629 100644
--- a/from.h
+++ b/src/prc1/from.h
diff --git a/gl.c b/src/prc1/gl.c
index de0293f..de0293f 100644
--- a/gl.c
+++ b/src/prc1/gl.c
diff --git a/gl.h b/src/prc1/gl.h
index d8aaaaf..d8aaaaf 100644
--- a/gl.h
+++ b/src/prc1/gl.h
diff --git a/im.c b/src/prc1/im.c
index e9a208c..e9a208c 100644
--- a/im.c
+++ b/src/prc1/im.c
diff --git a/im.h b/src/prc1/im.h
index 30382ed..30382ed 100644
--- a/im.h
+++ b/src/prc1/im.h
diff --git a/kw.c b/src/prc1/kw.c
index d5e22ca..d5e22ca 100644
--- a/kw.c
+++ b/src/prc1/kw.c
diff --git a/lex.c b/src/prc1/lex.c
index 736ebdd..736ebdd 100644
--- a/lex.c
+++ b/src/prc1/lex.c
diff --git a/lex.h b/src/prc1/lex.h
index 6e836ac..6e836ac 100644
--- a/lex.h
+++ b/src/prc1/lex.h
diff --git a/lit.c b/src/prc1/lit.c
index 09528a2..09528a2 100644
--- a/lit.c
+++ b/src/prc1/lit.c
diff --git a/lit.h b/src/prc1/lit.h
index e94263c..e94263c 100644
--- a/lit.h
+++ b/src/prc1/lit.h
diff --git a/lk.c b/src/prc1/lk.c
index 8bfb738..8bfb738 100644
--- a/lk.c
+++ b/src/prc1/lk.c
diff --git a/lk.h b/src/prc1/lk.h
index 35df205..35df205 100644
--- a/lk.h
+++ b/src/prc1/lk.h
diff --git a/parse.c b/src/prc1/parse.c
index 1c3aba2..1c3aba2 100644
--- a/parse.c
+++ b/src/prc1/parse.c
diff --git a/parse.h b/src/prc1/parse.h
index b85d618..b85d618 100644
--- a/parse.h
+++ b/src/prc1/parse.h
diff --git a/pop.c b/src/prc1/pop.c
index ba2f3a1..ba2f3a1 100644
--- a/pop.c
+++ b/src/prc1/pop.c
diff --git a/pr.c b/src/prc1/pr.c
index a171554..a171554 100644
--- a/pr.c
+++ b/src/prc1/pr.c
diff --git a/pr.h b/src/prc1/pr.h
index e3d8bf8..e3d8bf8 100644
--- a/pr.h
+++ b/src/prc1/pr.h
diff --git a/main.c b/src/prc1/prc1.c
index 69165ba..69165ba 100644
--- a/main.c
+++ b/src/prc1/prc1.c
diff --git a/print.c b/src/prc1/print.c
index abdb149..abdb149 100644
--- a/print.c
+++ b/src/prc1/print.c
diff --git a/print.h b/src/prc1/print.h
index 950e0bc..950e0bc 100644
--- a/print.h
+++ b/src/prc1/print.h
diff --git a/prv.h b/src/prc1/prv.h
index c0c8930..c0c8930 100644
--- a/prv.h
+++ b/src/prc1/prv.h
diff --git a/push.c b/src/prc1/push.c
index 1a9056d..1a9056d 100644
--- a/push.c
+++ b/src/prc1/push.c
diff --git a/sdup.c b/src/prc1/sdup.c
index e990744..e990744 100644
--- a/sdup.c
+++ b/src/prc1/sdup.c
diff --git a/set.c b/src/prc1/set.c
index 3058040..3058040 100644
--- a/set.c
+++ b/src/prc1/set.c
diff --git a/set.h b/src/prc1/set.h
index fdd067a..fdd067a 100644
--- a/set.h
+++ b/src/prc1/set.h
diff --git a/stmt.c b/src/prc1/stmt.c
index 8d2fdd4..8d2fdd4 100644
--- a/stmt.c
+++ b/src/prc1/stmt.c
diff --git a/stmt.h b/src/prc1/stmt.h
index 5cc650d..5cc650d 100644
--- a/stmt.h
+++ b/src/prc1/stmt.h
diff --git a/storage.c b/src/prc1/storage.c
index 62f3c1f..62f3c1f 100644
--- a/storage.c
+++ b/src/prc1/storage.c
diff --git a/storage.h b/src/prc1/storage.h
index a3509c5..a3509c5 100644
--- a/storage.h
+++ b/src/prc1/storage.h
diff --git a/td.c b/src/prc1/td.c
index 72c379f..72c379f 100644
--- a/td.c
+++ b/src/prc1/td.c
diff --git a/td.h b/src/prc1/td.h
index 2e23348..2e23348 100644
--- a/td.h
+++ b/src/prc1/td.h
diff --git a/tmp.c b/src/prc1/tmp.c
index c93443f..c93443f 100644
--- a/tmp.c
+++ b/src/prc1/tmp.c
diff --git a/tmp.h b/src/prc1/tmp.h
index b62487a..b62487a 100644
--- a/tmp.h
+++ b/src/prc1/tmp.h
diff --git a/type.c b/src/prc1/type.c
index c7e43d0..c7e43d0 100644
--- a/type.c
+++ b/src/prc1/type.c
diff --git a/type.h b/src/prc1/type.h
index 7de6c28..7de6c28 100644
--- a/type.h
+++ b/src/prc1/type.h
diff --git a/warn.c b/src/prc1/warn.c
index 456ce79..456ce79 100644
--- a/warn.c
+++ b/src/prc1/warn.c
diff --git a/warn.h b/src/prc1/warn.h
index 5327592..5327592 100644
--- a/warn.h
+++ b/src/prc1/warn.h
diff --git a/ws.c b/src/prc1/ws.c
index 59e1aec..59e1aec 100644
--- a/ws.c
+++ b/src/prc1/ws.c
diff --git a/ws.h b/src/prc1/ws.h
index fa44a37..fa44a37 100644
--- a/ws.h
+++ b/src/prc1/ws.h