-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed an issue during the call to a *for* instance, where the evaluated variables were not correctly set as environment constants. - Deleted some debug print to stdout. - The conditions for the correct evaluation of arguments dependent on the specified environment when using a *for* instance are modified. - Fixed an indexing error during export of functions and arguments. - Support is added for the use of functions within "for" instances, allowing environment constants to be set as the value of the arguments.
- Loading branch information
1 parent
e5dee34
commit a1f79fc
Showing
8 changed files
with
188 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import queue | ||
import pickle | ||
from AkitaCode.document import Document | ||
# Create a database instance. | ||
# import config_mod | ||
q = queue.Queue() | ||
# db = config_mod.get_db_path() | ||
db = "C:/Users/aamat/.akitacan/data.db" | ||
# Get path of file. | ||
filename = "(v.2.0.2)_prova_var_fn_inside_for_statement" | ||
in_filename = "E:/Akitacan/dev/test/{}{}".format(filename,".atd") | ||
out_filename = "E:/Akitacan/dev/test/{}{}".format(filename,".akita") | ||
|
||
# Create a document instance. | ||
doc = Document(in_filename, db) | ||
|
||
# print(doc._error) | ||
# print(doc._error_msg) if doc._error_msg is not None else print("Success!!") | ||
|
||
fase_A = doc.check_syntax(q) | ||
print("FASE A: {}".format(fase_A)) | ||
print(q.get()) | ||
if fase_A: | ||
fase_B = doc.check_spell(q) | ||
print("FASE B: {}".format(fase_B)) | ||
print(q.get()) | ||
if fase_B: | ||
fase_C = doc.makec(q,out_filename,autoclose=True) | ||
print("FASE C: {}".format(fase_C)) | ||
print(q.get()) | ||
if fase_C == 0: | ||
f = pickle.load(open(out_filename,"rb")) | ||
f = f["data"] | ||
for l in f: | ||
print(repr(l)+"\r") | ||
# print(f) | ||
print(q.get()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import queue | ||
import pickle | ||
from AkitaCode.document import Document | ||
# Create a database instance. | ||
# import config_mod | ||
q = queue.Queue() | ||
# db = config_mod.get_db_path() | ||
db = "C:/Users/aamat/.akitacan/data.db" | ||
# Get path of file. | ||
filename = "(v.2.0.2)_prova_var_fn_inside_for_statement_wt_depencences" | ||
in_filename = "E:/Akitacan/dev/test/{}{}".format(filename,".atd") | ||
out_filename = "E:/Akitacan/dev/test/{}{}".format(filename,".akita") | ||
|
||
# Create a document instance. | ||
doc = Document(in_filename, db) | ||
|
||
# print(doc._error) | ||
# print(doc._error_msg) if doc._error_msg is not None else print("Success!!") | ||
|
||
fase_A = doc.check_syntax(q) | ||
print("FASE A: {}".format(fase_A)) | ||
print(q.get()) | ||
if fase_A: | ||
fase_B = doc.check_spell(q) | ||
print("FASE B: {}".format(fase_B)) | ||
print(q.get()) | ||
if fase_B: | ||
fase_C = doc.makec(q,out_filename,autoclose=True) | ||
print("FASE C: {}".format(fase_C)) | ||
while True: | ||
msg = q.get() | ||
if msg == True: | ||
break | ||
if fase_C == 0: | ||
f = pickle.load(open(out_filename,"rb")) | ||
f = f["data"] | ||
# for l in f: | ||
# print(repr(l)+"\r") | ||
# print(f) | ||
print(msg) |