Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

axiom #33

Open
zaoqi opened this issue May 24, 2019 · 0 comments
Open

axiom #33

zaoqi opened this issue May 24, 2019 · 0 comments

Comments

@zaoqi
Copy link

zaoqi commented May 24, 2019

https://jarble.github.io/transpiler/javascript/js_transpiler/test_parser.html#%7B%22inputText%22%3A%22z%20%3D%20Math.pow(2%2C4)%2BMath.sqrt(2)%3B%22%2C%22inputLang%22%3A%22javascript%22%2C%22outputLang%22%3A%22axiom%22%7D

Generating code: ["top_level_statements",[["function","public","void","var_example",[],["statements",[["semicolon",["initialize_var","boolean","i",["==",[".",["1"]],[".",["3"]]]]]]]]]] java_translator.js:2198:10
Generating code: ["function","public","void","var_example",[],["statements",[["semicolon",["initialize_var","boolean","i",["==",[".",["1"]],[".",["3"]]]]]]]] java_translator.js:2198:10
Generating code: ["statements",[["semicolon",["initialize_var","boolean","i",["==",[".",["1"]],[".",["3"]]]]]]] java_translator.js:2198:10
Generating code: ["semicolon",["initialize_var","boolean","i",["==",[".",["1"]],[".",["3"]]]]] java_translator.js:2198:10
Generating code: ["initialize_var","boolean","i",["==",[".",["1"]],[".",["3"]]]] java_translator.js:2198:10
Generating code: ["==",[".",["1"]],[".",["3"]]] java_translator.js:2198:10
Generating code: [".",["1"]] java_translator.js:2198:10
Generating code: [".",["3"]] java_translator.js:2198:10
Generating code: ["top_level_statements",[["function","public","Object","var_example",[],["semicolon",["set_var","i",["==",["1"],["3"]]]]]]] java_translator.js:2198:10
Generating code: ["function","public","Object","var_example",[],["semicolon",["set_var","i",["==",["1"],["3"]]]]] java_translator.js:2198:10
Generating code: ["semicolon",["set_var","i",["==",["1"],["3"]]]] java_translator.js:2198:10
Generating code: ["set_var","i",["==",["1"],["3"]]] java_translator.js:2198:10
Generating code: "i" java_translator.js:2198:10
Generating code: ["==",["1"],["3"]] java_translator.js:2198:10
Generating code: ["1"] java_translator.js:2198:10
Generating code: "1" java_translator.js:2198:10
Generating code: ["3"] java_translator.js:2198:10
Generating code: "3" java_translator.js:2198:10
Generating code: ["top_level_statements",[["function","public","void","print_example",[["int","to_print"]],["statements",[["semicolon",[".",["System","out",["function_call","println",[[".",["to_print"]]]]]]]]]]]] java_translator.js:2198:10
Generating code: ["function","public","void","print_example",[["int","to_print"]],["statements",[["semicolon",[".",["System","out",["function_call","println",[[".",["to_print"]]]]]]]]]] java_translator.js:2198:10
Generating code: ["statements",[["semicolon",[".",["System","out",["function_call","println",[[".",["to_print"]]]]]]]]] java_translator.js:2198:10
Generating code: ["semicolon",[".",["System","out",["function_call","println",[[".",["to_print"]]]]]]] java_translator.js:2198:10
Generating code: [".",["System","out",["function_call","println",[[".",["to_print"]]]]]] java_translator.js:2198:10
Generating code: [".",[[".",["System","out"]],["function_call","println",[[".",["to_print"]]]]]] java_translator.js:2198:10
Generating code: [".",["to_print"]] java_translator.js:2198:10
Unparsing: ["function_call","Print",["$a"]] java_translator.js:1963:10
Unparsing: "$a" java_translator.js:1963:10
Generating code: [".",["to_print"]] java_translator.js:2198:10
Unparsed: to_print java_translator.js:2185:11
Generating code: "to_print" java_translator.js:2198:10
Unparsed: Print[to_print] java_translator.js:2185:11
Generating code: ["top_level_statements",[["function","public","Object","print_example",[["Object","to_print"]],["statements",[["semicolon",["return",["parentheses",["function_call","Print",["to_print"]]]]]]]]]] java_translator.js:2198:10
Generating code: ["function","public","Object","print_example",[["Object","to_print"]],["statements",[["semicolon",["return",["parentheses",["function_call","Print",["to_print"]]]]]]]] java_translator.js:2198:10
Generating code: ["statements",[["semicolon",["return",["parentheses",["function_call","Print",["to_print"]]]]]]] java_translator.js:2198:10
Generating code: ["semicolon",["return",["parentheses",["function_call","Print",["to_print"]]]]] java_translator.js:2198:10
Generating code: ["return",["parentheses",["function_call","Print",["to_print"]]]] java_translator.js:2198:10
Generating code: ["parentheses",["function_call","Print",["to_print"]]] java_translator.js:2198:10
Generating code: ["function_call","Print",["to_print"]] java_translator.js:2198:10
Generating code: "to_print" java_translator.js:2198:10
Unparsing: ["function_call","print",["$a"]] java_translator.js:1963:10
Unparsing: "$a" java_translator.js:1963:10
Generating code: "to_print" java_translator.js:2198:10
Unparsed: to_print java_translator.js:2185:11
Generating code: "to_print" java_translator.js:2198:10
Unparsed: print(to_print) java_translator.js:2185:11
Generating code: ["top_level_statements",[["function","public","void","loop_example",[],["statements",[["lexically_scoped_vars",[["lexically_scoped_var",["int","[]"],"i",[".",[["initializer_list","Object",[[".",["1"]],[".",["2"]],[".",["3"]]]]]]]],["statements",[["foreach","int","j","i",["statements",[["semicolon",[".",["System","out",["function_call","println",[[".",["j"]]]]]]]]]]]]]]]]]] java_translator.js:2198:10
Generating code: ["function","public","void","loop_example",[],["statements",[["lexically_scoped_vars",[["lexically_scoped_var",["int","[]"],"i",[".",[["initializer_list","Object",[[".",["1"]],[".",["2"]],[".",["3"]]]]]]]],["statements",[["foreach","int","j","i",["statements",[["semicolon",[".",["System","out",["function_call","println",[[".",["j"]]]]]]]]]]]]]]]] java_translator.js:2198:10
Generating code: ["statements",[["lexically_scoped_vars",[["lexically_scoped_var",["int","[]"],"i",[".",[["initializer_list","Object",[[".",["1"]],[".",["2"]],[".",["3"]]]]]]]],["statements",[["foreach","int","j","i",["statements",[["semicolon",[".",["System","out",["function_call","println",[[".",["j"]]]]]]]]]]]]]]] java_translator.js:2198:10
Generating code: ["lexically_scoped_vars",[["lexically_scoped_var",["int","[]"],"i",[".",[["initializer_list","Object",[[".",["1"]],[".",["2"]],[".",["3"]]]]]]]],["statements",[["foreach","int","j","i",["statements",[["semicolon",[".",["System","out",["function_call","println",[[".",["j"]]]]]]]]]]]]] java_translator.js:2198:10
Generating code: ["lexically_scoped_var",["int","[]"],"i",[".",[["initializer_list","Object",[[".",["1"]],[".",["2"]],[".",["3"]]]]]]] java_translator.js:2198:10
Generating code: [".",[["initializer_list","Object",[[".",["1"]],[".",["2"]],[".",["3"]]]]]] java_translator.js:2198:10
Generating code: [["initializer_list","Object",[[".",["1"]],[".",["2"]],[".",["3"]]]]] java_translator.js:2198:10
Generating code: ["initializer_list","Object",[[".",["1"]],[".",["2"]],[".",["3"]]]] java_translator.js:2198:10
Generating code: [".",["1"]] java_translator.js:2198:10
Generating code: [".",["2"]] java_translator.js:2198:10
Generating code: [".",["3"]] java_translator.js:2198:10
Generating code: ["semicolon",["initialize_var",["int","[]"],"i",[".",[["initializer_list","Object",[[".",["1"]],[".",["2"]],[".",["3"]]]]]]]] java_translator.js:2198:10
Generating code: ["initialize_var",["int","[]"],"i",[".",[["initializer_list","Object",[[".",["1"]],[".",["2"]],[".",["3"]]]]]]] java_translator.js:2198:10
Generating code: [".",[["initializer_list","Object",[[".",["1"]],[".",["2"]],[".",["3"]]]]]] java_translator.js:2198:10
Generating code: [["initializer_list","Object",[[".",["1"]],[".",["2"]],[".",["3"]]]]] java_translator.js:2198:10
Generating code: ["initializer_list","Object",[[".",["1"]],[".",["2"]],[".",["3"]]]] java_translator.js:2198:10
Generating code: [".",["1"]] java_translator.js:2198:10
Generating code: [".",["2"]] java_translator.js:2198:10
Generating code: [".",["3"]] java_translator.js:2198:10
Setting array type: i,int,[] java_translator.js:1252:11
Setting array type: {1,2,3},int,[] java_translator.js:1252:11
Generating code: ["statements",[["foreach","int","j","i",["statements",[["semicolon",[".",["System","out",["function_call","println",[[".",["j"]]]]]]]]]]]] java_translator.js:2198:10
Generating code: ["foreach","int","j","i",["statements",[["semicolon",[".",["System","out",["function_call","println",[[".",["j"]]]]]]]]]] java_translator.js:2198:10
Generating code: "j" java_translator.js:2198:10
Generating code: "i" java_translator.js:2198:10
Generating code: ["statements",[["semicolon",[".",["System","out",["function_call","println",[[".",["j"]]]]]]]]] java_translator.js:2198:10
Generating code: ["semicolon",[".",["System","out",["function_call","println",[[".",["j"]]]]]]] java_translator.js:2198:10
Generating code: [".",["System","out",["function_call","println",[[".",["j"]]]]]] java_translator.js:2198:10
Generating code: [".",[[".",["System","out"]],["function_call","println",[[".",["j"]]]]]] java_translator.js:2198:10
Generating code: [".",["j"]] java_translator.js:2198:10
Unparsing: ["function_call","Print",["$a"]] java_translator.js:1963:10
Unparsing: "$a" java_translator.js:1963:10
Generating code: [".",["j"]] java_translator.js:2198:10
Unparsed: j java_translator.js:2185:11
Generating code: "j" java_translator.js:2198:10
Unparsed: Print[j] java_translator.js:2185:11
Generating code: ["top_level_statements",[["function","public","Object","loop_example",[],["statements",[["semicolon",["set_var","i",["initializer_list","Object",[["1"],["2"],["3"]]]]],["foreach","Object","j","i",["statements",[["semicolon",["return",["parentheses",["function_call","Print",["j"]]]]]]]]]]]]] java_translator.js:2198:10
Generating code: ["function","public","Object","loop_example",[],["statements",[["semicolon",["set_var","i",["initializer_list","Object",[["1"],["2"],["3"]]]]],["foreach","Object","j","i",["statements",[["semicolon",["return",["parentheses",["function_call","Print",["j"]]]]]]]]]]] java_translator.js:2198:10
Generating code: ["statements",[["semicolon",["set_var","i",["initializer_list","Object",[["1"],["2"],["3"]]]]],["foreach","Object","j","i",["statements",[["semicolon",["return",["parentheses",["function_call","Print",["j"]]]]]]]]]] java_translator.js:2198:10
Generating code: ["semicolon",["set_var","i",["initializer_list","Object",[["1"],["2"],["3"]]]]] java_translator.js:2198:10
Generating code: ["set_var","i",["initializer_list","Object",[["1"],["2"],["3"]]]] java_translator.js:2198:10
Generating code: "i" java_translator.js:2198:10
Generating code: ["initializer_list","Object",[["1"],["2"],["3"]]] java_translator.js:2198:10
Generating code: ["1"] java_translator.js:2198:10
Generating code: "1" java_translator.js:2198:10
Generating code: ["2"] java_translator.js:2198:10
Generating code: "2" java_translator.js:2198:10
Generating code: ["3"] java_translator.js:2198:10
Generating code: "3" java_translator.js:2198:10
Generating code: ["foreach","Object","j","i",["statements",[["semicolon",["return",["parentheses",["function_call","Print",["j"]]]]]]]] java_translator.js:2198:10
Generating code: "j" java_translator.js:2198:10
Generating code: "i" java_translator.js:2198:10
Generating code: ["statements",[["semicolon",["return",["parentheses",["function_call","Print",["j"]]]]]]] java_translator.js:2198:10
Generating code: ["semicolon",["return",["parentheses",["function_call","Print",["j"]]]]] java_translator.js:2198:10
Generating code: ["return",["parentheses",["function_call","Print",["j"]]]] java_translator.js:2198:10
Generating code: ["parentheses",["function_call","Print",["j"]]] java_translator.js:2198:10
Generating code: ["function_call","Print",["j"]] java_translator.js:2198:10
Generating code: "j" java_translator.js:2198:10
Unparsing: ["function_call","print",["$a"]] java_translator.js:1963:10
Unparsing: "$a" java_translator.js:1963:10
Generating code: "j" java_translator.js:2198:10
Unparsed: j java_translator.js:2185:11
Generating code: "j" java_translator.js:2198:10
Unparsed: print(j) java_translator.js:2185:11
Generating code: ["top_level_statements",[["semicolon",["set_var","z",["+",[".",["Math",["function_call","pow",[[".",["2"]],[".",["4"]]]]]],[".",["Math",["function_call","sqrt",[[".",["2"]]]]]]]]]]] java_translator.js:2198:10
Generating code: ["semicolon",["set_var","z",["+",[".",["Math",["function_call","pow",[[".",["2"]],[".",["4"]]]]]],[".",["Math",["function_call","sqrt",[[".",["2"]]]]]]]]] java_translator.js:2198:10
Generating code: ["set_var","z",["+",[".",["Math",["function_call","pow",[[".",["2"]],[".",["4"]]]]]],[".",["Math",["function_call","sqrt",[[".",["2"]]]]]]]] java_translator.js:2198:10
Generating code: "z" java_translator.js:2198:10
Generating code: ["+",[".",["Math",["function_call","pow",[[".",["2"]],[".",["4"]]]]]],[".",["Math",["function_call","sqrt",[[".",["2"]]]]]]] java_translator.js:2198:10
Generating code: [".",["Math",["function_call","pow",[[".",["2"]],[".",["4"]]]]]] java_translator.js:2198:10
Generating code: [".",["2"]] java_translator.js:2198:10
Generating code: [".",["4"]] java_translator.js:2198:10
Generating code: [".",["Math",["function_call","sqrt",[[".",["2"]]]]]] java_translator.js:2198:10
Generating code: [".",["2"]] java_translator.js:2198:10
Unparsing: ["function_call","sqrt",["$a"]] java_translator.js:1963:10
Unparsing: "$a" java_translator.js:1963:10
Generating code: [".",["2"]] java_translator.js:2198:10
Unparsed: 2 java_translator.js:2185:11
Generating code: "2" java_translator.js:2198:10
uncaught exception: function_call_parameters is not defined for axiom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant