clean house on old examples; sketch out outline for new examples

This commit is contained in:
Allen Webster
2021-09-02 19:29:40 -07:00
parent cae86313c6
commit 5a1462faee
15 changed files with 21 additions and 764 deletions
-2
View File
@@ -10,8 +10,6 @@ echo "~~~ Build All Exampes ~~~"
bin/bld_core.sh show_ctx
bin/bld_core.sh unit old_style_custom_layer examples/old_style_custom_layer.c
bin/bld_core.sh unit output_parse examples/output_parse/output_parse.c
bin/bld_core.sh unit c_code_generation examples/c_code_generation.c
bin/bld_core.sh unit node_errors examples/node_errors/node_errors.c
bin/bld_core.sh unit parse_check examples/parse_check.c
-21
View File
@@ -1,21 +0,0 @@
#!/bin/bash
###### Get Paths ##############################################################
og_path=$PWD
cd "$(dirname "$0")"
cd ..
###### Script #################################################################
echo "~~~ Build All Exampes ~~~"
bin/bld_core.sh show_ctx
bin/bld_core.sh unit old_style_custom_layer examples/old_style_custom_layer.c
bin/bld_core.sh unit output_parse examples/output_parse/output_parse.c
bin/bld_core.sh unit c_code_generation examples/c_code_generation.c
bin/bld_core.sh unit node_errors examples/node_errors/node_errors.c
bin/bld_core.sh unit parse_check examples/parse_check.c
echo
###### Restore Path ###########################################################
cd $og_path
-5
View File
@@ -18,11 +18,6 @@ if [ -d "output_parse/examples" ]; then
fi
echo
echo ~~~ Running C Code Generation Example ~~~
cd $build_path
./c_code_generation.exe
echo
echo ~~~ Running Error Generation Example ~~~
cd $build_path
./node_errors.exe $examples_path/node_errors/node_errors.mdesk
-37
View File
@@ -1,37 +0,0 @@
#!/bin/bash
###### Get Paths ##############################################################
og_path=$PWD
cd "$(dirname "$0")"
cd ..
root_path=$PWD
build_path=$root_path/build
examples_path=$root_path/examples
echo ~~~ Running Output Parse Example ~~~
cd $examples_path
if [ -d "output_parse/examples" ]; then
cd output_parse/examples
mkdir -p output
cd output
$build_path/output_parse.exe ../example.mdesk ../example2.mdesk
fi
echo
echo ~~~ Running C Code Generation Example ~~~
cd $build_path
./c_code_generation.exe
echo
echo ~~~ Running Error Generation Example ~~~
cd $build_path
./node_errors.exe $examples_path/node_errors/node_errors.mdesk
echo
echo ~~~ Running C++ Example ~~~
cd $build_path
./cpp_build_test.exe
echo
###### Restore Path ###########################################################
cd $og_path