From: Thomas Walker Lynch Date: Thu, 5 Sep 2024 01:52:06 +0000 (+0000) Subject: adds the Arithmetic test trasncripts X-Git-Url: https://git.reasoningtechnology.com/usr/lib/python2.7/encodings/cp1255.py?a=commitdiff_plain;h=5f8b0c4dc50944fdc7343bb955accced8cd9ee72;p=GQL-to-Cypher adds the Arithmetic test trasncripts --- diff --git a/developer/executor/Arithmetic_Syntax__Test b/developer/executor/Arithmetic_Syntax__Test new file mode 100755 index 0000000..565509a --- /dev/null +++ b/developer/executor/Arithmetic_Syntax__Test @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +/var/user_data/Thomas-developer/GQL_to_Cypher/tool/jdk-22.0.1+8/bin/java -cp :/var/user_data/Thomas-developer/GQL_to_Cypher/developer/jvm:/var/user_data/Thomas-developer/GQL_to_Cypher/tool/executor/antlr-4.11.1-complete.jar:/var/user_data/Thomas-developer/GQL_to_Cypher/developer/jvm:/var/user_data/Thomas-developer/GQL_to_Cypher/tool/executor/antlr-4.11.1-complete.jar:/var/user_data/Thomas-developer/GQL_to_Cypher/developer/jvm:/var/user_data/Thomas-developer/GQL_to_Cypher/tool/executor/antlr-4.11.1-complete.jar:/var/user_data/Thomas-developer/GQL_to_Cypher/developer/jvm:/var/user_data/Thomas-developer/GQL_to_Cypher/tool/executor/antlr-4.11.1-complete.jar:/var/user_data/Thomas-developer/GQL_to_Cypher/developer/jvm:/var/user_data/Thomas-developer/GQL_to_Cypher/tool/executor/antlr-4.11.1-complete.jar:/var/user_data/Thomas-developer/GQL_to_Cypher/developer/jvm:/var/user_data/Thomas-developer/GQL_to_Cypher/developer/jvm/Arithmetic_Syntax__Test.jar Arithmetic_Syntax__Test $@ diff --git a/developer/executor/env_build b/developer/executor/env_build index 4ec3162..3a52001 100755 --- a/developer/executor/env_build +++ b/developer/executor/env_build @@ -38,11 +38,8 @@ if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then fi #-------------------------------------------------------------------------------- -# project programs to be built -# each new executable will also need a custom target in makefile-project.mk +# programs to be built by make project-all (or more simply `make`) # -# Tool programs to be built are not placed in this list. the makefile-tool.mk -# file handles them explicitly. export EXECUTOR_IN_FL="\ PrintRuleNameList\ @@ -63,7 +60,7 @@ export EXECUTOR_IN_DIR="executor" export EXECUTOR_IN_FPL=$(for program in $EXECUTOR_IN_FL; do echo "${EXECUTOR_IN_DIR}/${program}"; done | tr '\n' ' ') #-------------------------------------------------------------------------------- -# build directories +# developer build directories # # ANTLR directories diff --git a/developer/executor/make b/developer/executor/make index fcc76d3..714a070 100755 --- a/developer/executor/make +++ b/developer/executor/make @@ -12,11 +12,4 @@ cd "$DEVELOPER_HOME" # in case there have been edits to the environment source "${EXECUTOR_IN_DIR}"/env_build -# If make is called with no arguments, we will make the entire project. -# Making the project has a dependency on the tools, so if they have not -# been made, they will be made before the project is made. -if [[ $# -eq 0 ]]; then - set -- "project" -fi - ${BIN_MAKE} --no-print-directory -f "${EXECUTOR_IN_DIR}"/makefile-top.mk $@ diff --git a/developer/executor/makefile-project.mk b/developer/executor/makefile-project.mk index 2c03a04..dc72f86 100644 --- a/developer/executor/makefile-project.mk +++ b/developer/executor/makefile-project.mk @@ -2,34 +2,44 @@ # Project build # -# turn off implicit rules +# turn off implicit rules, because they can do unexpected things. .SUFFIXES: MAKEFLAGS += -r -# `make` always tries to make its makefiles as targets. This prevents that. +# Turns off the "feature" where `make` tries to make its makefiles as file targets. There +# is no command line switch to turn this off. .PHONY: $(MAKEFILE_LIST) + +# 'make' has a "feature" where it deletes what it determines to be intermediate +# files. There is no command line switch to turn this behavior off. Combine +# this feature with implicit rules to have loads of fun. At least this prevents +# make from deleting its makefiles if it happens to decide one is an +# intermediate file. .PRECIOUS: $(MAKEFILE_LIST) -$(info makefile: $(MAKEFILE_LIST)) -$(info project_MAKECMDGOALS: $(MAKECMDGOALS)) -$(info project_MAKE: $(MAKE)) -R_MAKE = $(MAKE) -$(MAKEFLAGS) -f $(MAKEFILE_LIST) +#$(info makefile: $(MAKEFILE_LIST)) +#$(info project_MAKECMDGOALS: $(MAKECMDGOALS)) +# for recursive make without leaving this makefile +REMAKE = $(MAKE) -$(MAKEFLAGS) -f $(MAKEFILE_LIST) #================================================================================ # Custom make targets # -# `make` in this section will be the `executor/make` script, due to `executor` -# being first in the path .. debugging .. this should be a variable from -# the env_build ... -project: $(EXECUTOR_IN_FPL) +all: $(EXECUTOR_IN_FPL) + + +#----------------------------------------------- +# A utility for viewing all the rules in a grammar + PrintRuleNameList: $(EXECUTOR_IN_DIR)/PrintRuleNameList #----------------------------------------------- # Arithmetic ANTLR_OUT_Arithmetic_FPL:= $(shell ANTLR_OUT_FL Arithmetic -path $(ANTLR_OUT_DIR)) +$(info ANTLR_OUT_Arithmetic_FPL: $(ANTLR_OUT_Arithmetic_FPL)) Arithmetic_Echo:\ $(ANTLR_OUT_Arithmetic_FPL)\ $(JAVA_COMP_IN_PRIMARY_DIR)/Arithmetic_Echo_PrintVisitor.java @@ -37,7 +47,7 @@ Arithmetic_Echo:\ echo "variable ANTLR_OUT_Arithmetic_FPL empty."; \ exit 1; \ fi - $(R_MAKE) $(EXECUTOR_IN_DIR)/Arithmetic_Echo + $(REMAKE) $(EXECUTOR_IN_DIR)/Arithmetic_Echo Arithmetic_Echo__Test:\ $(ANTLR_OUT_Arithmetic_FPL)\ @@ -46,7 +56,7 @@ Arithmetic_Echo__Test:\ echo "variable ANTLR_OUT_Arithmetic_FPL empty."; \ exit 1; \ fi - $(R_MAKE) $(EXECUTOR_IN_DIR)/Arithmetic_Echo__Test + $(REMAKE) $(EXECUTOR_IN_DIR)/Arithmetic_Echo__Test Arithmetic_Syntax:\ $(ANTLR_OUT_Arithmetic_FPL)\ @@ -55,7 +65,7 @@ Arithmetic_Syntax:\ echo "variable ANTLR_OUT_Arithmetic_FPL empty."; \ exit 1; \ fi - $(R_MAKE) $(EXECUTOR_IN_DIR)/Arithmetic_Syntax + $(REMAKE) $(EXECUTOR_IN_DIR)/Arithmetic_Syntax Arithmetic_Syntax__Test:\ $(ANTLR_OUT_Arithmetic_FPL)\ @@ -64,7 +74,7 @@ Arithmetic_Syntax__Test:\ echo "variable ANTLR_OUT_Arithmetic_FPL empty."; \ exit 1; \ fi - $(R_MAKE) $(EXECUTOR_IN_DIR)/Arithmetic_Syntax__Test + $(REMAKE) $(EXECUTOR_IN_DIR)/Arithmetic_Syntax__Test #----------------------------------------------- # GQL_20240412 @@ -77,7 +87,7 @@ GQL_20240412_Syntax:\ echo "variable ANTLR_OUT_GQL_20240412_FPL empty."; \ exit 1; \ fi - $(R_MAKE) $(EXECUTOR_IN_DIR)/GQL_20240412_Syntax + $(REMAKE) $(EXECUTOR_IN_DIR)/GQL_20240412_Syntax GQL_20240412_Syntax__Test: \ $(ANTLR_OUT_GQL_20240412_FPL) \ @@ -86,14 +96,14 @@ GQL_20240412_Syntax__Test: \ echo "variable ANTLR_OUT_GQL_20240412_FPL empty."; \ exit 1; \ fi - $(R_MAKE) $(EXECUTOR_IN_DIR)/GQL_20240412_Syntax__Test + $(REMAKE) $(EXECUTOR_IN_DIR)/GQL_20240412_Syntax__Test TerminalToCategory: - $(R_MAKE) $(EXECUTOR_IN_DIR)/TerminalToCategory + $(REMAKE) $(EXECUTOR_IN_DIR)/TerminalToCategory GrammarSplitter: - $(R_MAKE) $(EXECUTOR_IN_DIR)/GrammarSplitter + $(REMAKE) $(EXECUTOR_IN_DIR)/GrammarSplitter #----------------------------------------------- # Compile all the .java files. @@ -105,14 +115,26 @@ java: $(JAVA_COMP_OUT_FPL) # generic targets, aka recipes # +# this section is not parallel make friendly +# $(ANTLR_OUT_DIR)/%Lexer.java: $(ANTLR_IN_PRIMARY_DIR)/%.g4 +# $(JAVA_INTERP) -jar $(ANTLR_JAR) -Dlanguage=Java -visitor -o $(ANTLR_OUT_DIR_PARENT) $< +# $(ANTLR_OUT_DIR)/%Parser.java: $(ANTLR_IN_PRIMARY_DIR)/%.g4 +# $(JAVA_INTERP) -jar $(ANTLR_JAR) -Dlanguage=Java -visitor -o $(ANTLR_OUT_DIR_PARENT) $< +# $(ANTLR_OUT_DIR)/%BaseListener.java: $(ANTLR_IN_PRIMARY_DIR)/%.g4 +# $(JAVA_INTERP) -jar $(ANTLR_JAR) -Dlanguage=Java -visitor -o $(ANTLR_OUT_DIR_PARENT) $< +# $(ANTLR_OUT_DIR)/%Listener.java: $(ANTLR_IN_PRIMARY_DIR)/%.g4 +# $(JAVA_INTERP) -jar $(ANTLR_JAR) -Dlanguage=Java -visitor -o $(ANTLR_OUT_DIR_PARENT) $< +# $(ANTLR_OUT_DIR)/%BaseVisitor.java: $(ANTLR_IN_PRIMARY_DIR)/%.g4 +# $(JAVA_INTERP) -jar $(ANTLR_JAR) -Dlanguage=Java -visitor -o $(ANTLR_OUT_DIR_PARENT) $< +# $(ANTLR_OUT_DIR)/%Visitor.java: $(ANTLR_IN_PRIMARY_DIR)/%.g4 +# $(JAVA_INTERP) -jar $(ANTLR_JAR) -Dlanguage=Java -visitor -o $(ANTLR_OUT_DIR_PARENT) $< + $(ANTLR_OUT_DIR)/%Lexer.java \ -$(ANTLR_OUT_DIR)/%Lexer.tokens \ $(ANTLR_OUT_DIR)/%Parser.java \ -$(ANTLR_OUT_DIR)/%Parser.tokens \ $(ANTLR_OUT_DIR)/%BaseListener.java \ $(ANTLR_OUT_DIR)/%Listener.java \ $(ANTLR_OUT_DIR)/%BaseVisitor.java \ -$(ANTLR_OUT_DIR)/%Visitor.java: $(ANTLR_IN_PRIMARY_FPL) +$(ANTLR_OUT_DIR)/%Visitor.java: $(ANTLR_IN_PRIMARY_DIR)/%.g4 @echo "making grammar from:" $< $(JAVA_INTERP) -jar $(ANTLR_JAR) -Dlanguage=Java -visitor -o $(ANTLR_OUT_DIR_PARENT) $< diff --git a/developer/executor/makefile-tool.mk b/developer/executor/makefile-tool.mk index db4037c..913d759 100644 --- a/developer/executor/makefile-tool.mk +++ b/developer/executor/makefile-tool.mk @@ -1,21 +1,34 @@ +#================================================================================ +# Build the tools that are needed for building the project. +# -# turn off implicit rules +# turn off implicit rules, because they can do unexpected things. .SUFFIXES: MAKEFLAGS += -r -# `make` always tries to make its makefiles as targets. This prevents that. +# Turns off the "feature" where `make` tries to make its makefiles as file targets. There +# is no command line switch to turn this off. .PHONY: $(MAKEFILE_LIST) + +# 'make' has a "feature" where it deletes what it determines to be intermediate +# files. There is no command line switch to turn this behavior off. Combine +# this feature with implicit rules to have loads of fun. At least this prevents +# make from deleting its makefiles if it happens to decide one is an +# intermediate file. .PRECIOUS: $(MAKEFILE_LIST) -$(info makefile: $(MAKEFILE_LIST)) -$(info project_MAKECMDGOALS: $(MAKECMDGOALS)) +#$(info makefile: $(MAKEFILE_LIST)) +#$(info project_MAKECMDGOALS: $(MAKECMDGOALS)) + +# for recursive make without leaving this makefile +REMAKE = $(MAKE) -$(MAKEFLAGS) -f $(MAKEFILE_LIST) #================================================================================ # Custom make targets # .PHONY: tool -tool: ANTLR_OUT_FL +all: ANTLR_OUT_FL ANTLR_OUT_FL: $(EXECUTOR_IN_DIR)/ANTLR_OUT_FL diff --git a/developer/executor/makefile-top.mk b/developer/executor/makefile-top.mk index 4e88b53..f4dca5f 100644 --- a/developer/executor/makefile-top.mk +++ b/developer/executor/makefile-top.mk @@ -1,28 +1,36 @@ -# In GNU make, pattern matches can not be empty strings. -# `> make project`, or `make project-project` makes the entire project -# `> make tool-tool` makes all the tools (while not making the project). +#================================================================================ +# top level makefile calls makefile-tool and makefile-project +# -# turn off implicit rules +# turn off implicit rules, because they can do unexpected things. .SUFFIXES: MAKEFLAGS += -r -# `make` always tries to make its make files as target files. This prevents that. +# Turns off the "feature" where `make` tries to make its makefiles as file targets. There +# is no command line switch to turn this off. .PHONY: $(MAKEFILE_LIST) + +# 'make' has a "feature" where it deletes what it determines to be intermediate +# files. There is no command line switch to turn this behavior off. Combine +# this feature with implicit rules to have loads of fun. At least this prevents +# make from deleting its makefiles if it happens to decide one is an +# intermediate file. .PRECIOUS: $(MAKEFILE_LIST) -$(info makefile: $(MAKEFILE_LIST)) -$(info project_MAKECMDGOALS: $(MAKECMDGOALS)) +#$(info makefile: $(MAKEFILE_LIST)) +#$(info project_MAKECMDGOALS: $(MAKECMDGOALS)) +# for recursive make without leaving this makefile +REMAKE = $(MAKE) -$(MAKEFLAGS) -f $(MAKEFILE_LIST) #================================================================================ # Custom make targets # -.PHONY: top version clean setup +.PHONY: all nothing version clean setup -# The 'all' target now depends on 'tool' and 'project' -top: setup tool-tool project-project +all: project-all -# for distinguishing between make syntax errors and build errors +# useful for distinguishing between make syntax errors and build errors nothing: @: @@ -45,7 +53,7 @@ setup: tool-%: setup $(BIN_MAKE) -f $(EXECUTOR_IN_DIR)/makefile-tool.mk -$(MAKEFLAGS) $* -project-%: tool-tool +project-%: tool-all $(BIN_MAKE) -f $(EXECUTOR_IN_DIR)/makefile-project.mk -$(MAKEFLAGS) $* # delegate other targets to the project diff --git a/developer/javac/Arithmetic_Syntax__Test.java b/developer/javac/Arithmetic_Syntax__Test.java index a65f1ad..566eabc 100644 --- a/developer/javac/Arithmetic_Syntax__Test.java +++ b/developer/javac/Arithmetic_Syntax__Test.java @@ -24,7 +24,7 @@ public class Arithmetic_Syntax__Test { public static boolean Arithmetic_Syntax_2() { return runTest( "Arithmetic_Syntax__Test_2.txt" - ,"program(expression(INT(2) operator(*) expression(INT(3) operator(+) INT(4))))" + ,"program(expression(INT(2) operator(*) (expression(INT(3) operator(+) INT(4)))))" ); } @@ -38,7 +38,7 @@ public class Arithmetic_Syntax__Test { public static boolean Arithmetic_Syntax_4() { return runTest( "Arithmetic_Syntax__Test_4.txt" - ,"program(expression(INT(3) operator(+) expression(INT(5) operator(*) expression(INT(10) operator(-) INT(4)))))" + ,"program(expression(INT(3) operator(+) expression(INT(5) operator(*) (expression(INT(10) operator(-) INT(4))))))" ); } diff --git a/developer/test/test_0.gql b/developer/test/test_0.gql deleted file mode 100644 index 6217c9a..0000000 --- a/developer/test/test_0.gql +++ /dev/null @@ -1,10 +0,0 @@ -{ - person(id: "123") { - name - age - friends { - name - age - } - } -} diff --git a/developer/test/test_0.sh b/developer/test/test_0.sh deleted file mode 100644 index 2903892..0000000 --- a/developer/test/test_0.sh +++ /dev/null @@ -1,2 +0,0 @@ - -java -cp developer/jvm/GQLEchoParser.jar gql.EchoParser test_0.gql diff --git a/developer/test/transcript_Arithmetic_Syntax__Test.sh b/developer/test/transcript_Arithmetic_Syntax__Test.sh new file mode 100644 index 0000000..d05b814 --- /dev/null +++ b/developer/test/transcript_Arithmetic_Syntax__Test.sh @@ -0,0 +1,33 @@ +2024-09-05T01:46:03Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> make Arithmetic_Syntax__Test +mkdir -p ANTLR javac jvm +mkdir -p executor test deprecated experiment ologist temporary +/bin/make -f executor/makefile-tool.mk -r --no-print-directory all +make[1]: Nothing to be done for 'all'. +/bin/make -f executor/makefile-project.mk -r --no-print-directory Arithmetic_Syntax__Test +ANTLR_OUT_Arithmetic_FPL: javac/ANTLR/ArithmeticLexer.java javac/ANTLR/ArithmeticParser.java javac/ANTLR/ArithmeticVisitor.java javac/ANTLR/ArithmeticBaseVisitor.java +making grammar from: ANTLR/Arithmetic.g4 +/var/user_data/Thomas-developer/GQL_to_Cypher/tool/jdk-22.0.1+8/bin/java -jar /var/user_data/Thomas-developer/GQL_to_Cypher/tool/executor/antlr-4.11.1-complete.jar -Dlanguage=Java -visitor -o javac ANTLR/Arithmetic.g4 +/bin/make -r --no-print-directory -f executor/makefile-project.mk executor/Arithmetic_Syntax__Test +ANTLR_OUT_Arithmetic_FPL: javac/ANTLR/ArithmeticLexer.java javac/ANTLR/ArithmeticParser.java javac/ANTLR/ArithmeticVisitor.java javac/ANTLR/ArithmeticBaseVisitor.java +Compiling javac/Arithmetic_Syntax__Test.java... +/var/user_data/Thomas-developer/GQL_to_Cypher/tool/jdk-22.0.1+8/bin/javac -d jvm -sourcepath javac:javac/ANTLR javac/Arithmetic_Syntax__Test.java +Created jvm/Arithmetic_Syntax__Test.class +Building Arithmetic_Syntax__Test... +/var/user_data/Thomas-developer/GQL_to_Cypher/tool/jdk-22.0.1+8/bin/jar cf jvm/Arithmetic_Syntax__Test.jar -C jvm Arithmetic_Syntax__Test.class +Created jvm/Arithmetic_Syntax__Test.jar +Creating script for Arithmetic_Syntax__Test... +chmod +x executor/Arithmetic_Syntax__Test +Created script executor/Arithmetic_Syntax__Test + +2024-09-05T01:46:11Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Syntax__Test +Total tests run: 5 +Total tests passed: 5 +Total tests failed: 0 + +2024-09-05T01:46:16Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> diff --git a/developer/test/transcript_test_Arithmetic_Echo.sh b/developer/test/transcript_test_Arithmetic_Echo.sh new file mode 100644 index 0000000..005a636 --- /dev/null +++ b/developer/test/transcript_test_Arithmetic_Echo.sh @@ -0,0 +1,56 @@ +2024-09-05T01:03:35Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> make Arithmetic_Echo +mkdir -p ANTLR javac jvm +mkdir -p executor test deprecated experiment ologist temporary +/bin/make -f executor/makefile-tool.mk -r --no-print-directory all +make[1]: Nothing to be done for 'all'. +/bin/make -f executor/makefile-project.mk -r --no-print-directory Arithmetic_Echo +ANTLR_OUT_Arithmetic_FPL: javac/ANTLR/ArithmeticLexer.java javac/ANTLR/ArithmeticParser.java javac/ANTLR/ArithmeticVisitor.java javac/ANTLR/ArithmeticBaseVisitor.java +making grammar from: ANTLR/Arithmetic.g4 +/var/user_data/Thomas-developer/GQL_to_Cypher/tool/jdk-22.0.1+8/bin/java -jar /var/user_data/Thomas-developer/GQL_to_Cypher/tool/executor/antlr-4.11.1-complete.jar -Dlanguage=Java -visitor -o javac ANTLR/Arithmetic.g4 +/bin/make -r --no-print-directory -f executor/makefile-project.mk executor/Arithmetic_Echo +ANTLR_OUT_Arithmetic_FPL: javac/ANTLR/ArithmeticLexer.java javac/ANTLR/ArithmeticParser.java javac/ANTLR/ArithmeticVisitor.java javac/ANTLR/ArithmeticBaseVisitor.java +Compiling javac/Arithmetic_Echo.java... +/var/user_data/Thomas-developer/GQL_to_Cypher/tool/jdk-22.0.1+8/bin/javac -d jvm -sourcepath javac:javac/ANTLR javac/Arithmetic_Echo.java +Created jvm/Arithmetic_Echo.class +Building Arithmetic_Echo... +/var/user_data/Thomas-developer/GQL_to_Cypher/tool/jdk-22.0.1+8/bin/jar cf jvm/Arithmetic_Echo.jar -C jvm Arithmetic_Echo.class +Created jvm/Arithmetic_Echo.jar +Creating script for Arithmetic_Echo... +chmod +x executor/Arithmetic_Echo +Created script executor/Arithmetic_Echo + +2024-09-05T01:03:43Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Echo Arithmetic_Syntax__Test_0.txt +(3 + 5) + +2024-09-05T01:04:01Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Echo Arithmetic_Syntax__Test_1.txt +(3 + 5) + +2024-09-05T01:04:05Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Echo Arithmetic_Syntax__Test_2.txt +(2 * (3 + 4)) + +2024-09-05T01:04:11Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Echo Arithmetic_Syntax__Test_3.txt +(10 / 2) + +2024-09-05T01:04:14Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Echo Arithmetic_Syntax__Test_4.txt +(3 + (5 * (10 - 4))) + +2024-09-05T01:05:11Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> clean program Arithmetic_Echo +Deleting program files for 'Arithmetic_Echo' + +2024-09-05T01:05:23Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> diff --git a/developer/test/transcript_test_Arithmetic_Syntax.sh b/developer/test/transcript_test_Arithmetic_Syntax.sh new file mode 100644 index 0000000..a46c4b1 --- /dev/null +++ b/developer/test/transcript_test_Arithmetic_Syntax.sh @@ -0,0 +1,157 @@ +2024-09-05T01:05:48Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> make Arithmetic_Syntax +mkdir -p ANTLR javac jvm +mkdir -p executor test deprecated experiment ologist temporary +/bin/make -f executor/makefile-tool.mk -r --no-print-directory all +make[1]: Nothing to be done for 'all'. +/bin/make -f executor/makefile-project.mk -r --no-print-directory Arithmetic_Syntax +ANTLR_OUT_Arithmetic_FPL: javac/ANTLR/ArithmeticLexer.java javac/ANTLR/ArithmeticParser.java javac/ANTLR/ArithmeticVisitor.java javac/ANTLR/ArithmeticBaseVisitor.java +making grammar from: ANTLR/Arithmetic.g4 +/var/user_data/Thomas-developer/GQL_to_Cypher/tool/jdk-22.0.1+8/bin/java -jar /var/user_data/Thomas-developer/GQL_to_Cypher/tool/executor/antlr-4.11.1-complete.jar -Dlanguage=Java -visitor -o javac ANTLR/Arithmetic.g4 +/bin/make -r --no-print-directory -f executor/makefile-project.mk executor/Arithmetic_Syntax +ANTLR_OUT_Arithmetic_FPL: javac/ANTLR/ArithmeticLexer.java javac/ANTLR/ArithmeticParser.java javac/ANTLR/ArithmeticVisitor.java javac/ANTLR/ArithmeticBaseVisitor.java +Compiling javac/Arithmetic_Syntax.java... +/var/user_data/Thomas-developer/GQL_to_Cypher/tool/jdk-22.0.1+8/bin/javac -d jvm -sourcepath javac:javac/ANTLR javac/Arithmetic_Syntax.java +Created jvm/Arithmetic_Syntax.class +Building Arithmetic_Syntax... +/var/user_data/Thomas-developer/GQL_to_Cypher/tool/jdk-22.0.1+8/bin/jar cf jvm/Arithmetic_Syntax.jar -C jvm Arithmetic_Syntax.class +Created jvm/Arithmetic_Syntax.jar +Creating script for Arithmetic_Syntax... +chmod +x executor/Arithmetic_Syntax +Created script executor/Arithmetic_Syntax + +2024-09-05T01:06:00Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Syntax -pp Arithmetic_Syntax__Test_0.txt +program + expression( + expression( + INT(3) + ) + operator(+) + expression( + INT(5) + ) + ) + + +2024-09-05T01:06:28Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Syntax -pp Arithmetic_Syntax__Test_1.txt +program + expression( + expression( + INT(3) + ) + operator(+) + expression( + INT(5) + ) + ) + + +2024-09-05T01:06:41Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Syntax -pp Arithmetic_Syntax__Test_2.txt +program + expression( + expression( + INT(2) + ) + operator(*) + expression( + ( + expression( + expression( + INT(3) + ) + operator(+) + expression( + INT(4) + ) + ) + ) + ) + ) + + +2024-09-05T01:06:46Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Syntax -pp Arithmetic_Syntax__Test_3.txt +program + expression( + expression( + INT(10) + ) + operator(/) + expression( + INT(2) + ) + ) + + +2024-09-05T01:06:50Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Syntax -pp Arithmetic_Syntax__Test_4.txt +program + expression( + expression( + INT(3) + ) + operator(+) + expression( + expression( + INT(5) + ) + operator(*) + expression( + ( + expression( + expression( + INT(10) + ) + operator(-) + expression( + INT(4) + ) + ) + ) + ) + ) + ) + + +2024-09-05T01:06:57Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Syntax Arithmetic_Syntax__Test_0.txt +program(expression(INT(3) operator(+) INT(5))) + +2024-09-05T01:07:12Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Syntax Arithmetic_Syntax__Test_1.txt +program(expression(INT(3) operator(+) INT(5))) + +2024-09-05T01:07:17Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Syntax Arithmetic_Syntax__Test_2.txt +program(expression(INT(2) operator(*) (expression(INT(3) operator(+) INT(4))))) + +2024-09-05T01:07:21Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Syntax Arithmetic_Syntax__Test_3.txt +program(expression(INT(10) operator(/) INT(2))) + +2024-09-05T01:07:24Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> Arithmetic_Syntax Arithmetic_Syntax__Test_4.txt +program(expression(INT(3) operator(+) expression(INT(5) operator(*) (expression(INT(10) operator(-) INT(4)))))) + +2024-09-05T01:07:29Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> clean program Arithmetic_Syntax +Deleting program files for 'Arithmetic_Syntax' + +2024-09-05T01:07:53Z[GQL_to_Cypher] +Thomas-developer@Vivobook12§/var/user_data/Thomas-developer/GQL_to_Cypher/developer/test§ +> diff --git a/executor/env_dev b/executor/env_dev index ecc55c4..c326b81 100644 --- a/executor/env_dev +++ b/executor/env_dev @@ -19,4 +19,8 @@ export DEVELOPER_HOME="$REPO_HOME/developer" export PATH="$DEVELOPER_HOME"/executor:"$REPO_HOME"/tool/executor:"$JAVA_HOME"/bin:"$PATH" cd "$DEVELOPER_HOME" +# This is helpful so that cut and paste from the makefile to the shell can be used for testing. +# When making use of this, the developer must resource env_build into the shell after modifications. +source "$DEVELOPER_HOME"/executor/env_build + echo "${BASH_SOURCE[0]}" "complete"