From 0f382f6efef254a295e71dc82ddd0f87b95aaddd Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Fri, 18 Aug 2017 23:20:25 +0300 Subject: [PATCH] =?utf8?q?RTL=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81?= =?utf8?q?=D0=B5=D0=BD=D0=B0=20=D0=B2=20=D0=BE=D1=82=D0=B4=D0=B5=D0=BB?= =?utf8?q?=D1=8C=D0=BD=D1=83=D1=8E=20=D0=B4=D0=B8=D1=80=D0=B5=D0=BA=D1=82?= =?utf8?q?=D0=BE=D1=80=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- count.sh | 13 +++++++++++++ notes | 4 +--- obn-compile.sh | 4 ++-- Strings.obn => rtl/Strings.obn | 0 rtl/{ => java}/Files.java | 0 Files.obn => rtl/java/Files.obn | 0 rtl/{ => java}/Launcher.java | 0 rtl/{ => java}/Out.java | 0 Out.obn => rtl/java/Out.obn | 0 rtl/{ => java}/SYSTEM.java | 0 10 files changed, 16 insertions(+), 5 deletions(-) rename Strings.obn => rtl/Strings.obn (100%) rename rtl/{ => java}/Files.java (100%) rename Files.obn => rtl/java/Files.obn (100%) rename rtl/{ => java}/Launcher.java (100%) rename rtl/{ => java}/Out.java (100%) rename Out.obn => rtl/java/Out.obn (100%) rename rtl/{ => java}/SYSTEM.java (100%) diff --git a/count.sh b/count.sh index a07d822..1e5db9d 100755 --- a/count.sh +++ b/count.sh @@ -1,3 +1,16 @@ #!/bin/sh +echo Compiler Sources: wc -l $(find . -name '*.c' -or -name '*.h') + +echo +echo Runtime Library: +wc -l $(find rtl -name '*.java' -or -name '*.obn') + +echo +echo Tests: +wc -l $(find tests -name '*.obn') + +echo +echo Total: +wc -l $(find . -name '*.c' -or -name '*.h' -or -name '*.java' -or -name '*.obn') | grep total diff --git a/notes b/notes index 6c6cf6f..0fa3ba8 100644 --- a/notes +++ b/notes @@ -2,10 +2,8 @@ - Не полная реализация модуля Files * Не реализована запись в файл -- Нужна опция для задания списка директорий для поиска модулей. - - Не полная реализация модуля Strings - * Реализованы только процедуры Length и Cap + * Не реализованы процедуры Insert Append Delete Replace Extract Pos - Сделать проверку повторов в CASE. - Сделать нормальную проверку наличия RETURN. diff --git a/obn-compile.sh b/obn-compile.sh index 4ad5c3d..0ab4b70 100755 --- a/obn-compile.sh +++ b/obn-compile.sh @@ -5,10 +5,10 @@ set -e rm -rf classes tmp mkdir -p classes tmp -./a.out -d tmp $* +./a.out -d tmp -I rtl/java -I rtl $* jasmin -d classes tmp/*.j -javac -d classes rtl/*.java +javac -d classes rtl/java/*.java proguard -injars classes -libraryjars /usr/lib/jvm/java-8-openjdk/jre/lib/rt.jar @proguard.conf diff --git a/Strings.obn b/rtl/Strings.obn similarity index 100% rename from Strings.obn rename to rtl/Strings.obn diff --git a/rtl/Files.java b/rtl/java/Files.java similarity index 100% rename from rtl/Files.java rename to rtl/java/Files.java diff --git a/Files.obn b/rtl/java/Files.obn similarity index 100% rename from Files.obn rename to rtl/java/Files.obn diff --git a/rtl/Launcher.java b/rtl/java/Launcher.java similarity index 100% rename from rtl/Launcher.java rename to rtl/java/Launcher.java diff --git a/rtl/Out.java b/rtl/java/Out.java similarity index 100% rename from rtl/Out.java rename to rtl/java/Out.java diff --git a/Out.obn b/rtl/java/Out.obn similarity index 100% rename from Out.obn rename to rtl/java/Out.obn diff --git a/rtl/SYSTEM.java b/rtl/java/SYSTEM.java similarity index 100% rename from rtl/SYSTEM.java rename to rtl/java/SYSTEM.java -- 2.29.2