The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weird problem with strings / arrays (*solved*)
#10
boriel Wrote:Sorry for the delay.
Apparently I messed up the build script for the python version.
Can you check it now?
Please check the version.
zxb.py --version
should return:
zxb.py 1.4.0-s1876
Well, the good news is that I finally have version 1.4.0-s1876! The bad news is, it still fails to compile the example listing, with the following error:
Code:
Traceback (most recent call last): File "../1.4.0/zxb.py", line 348, in <module> sys.exit(main(sys.argv)) # Exit File "../1.4.0/zxb.py", line 274, in main translator.visit(zxbparser.ast) File "/Users/MacMini/Dropbox/Boriel/1.4.0/ast_/ast.py", line 102, in visit stack.append(last.send(last_result)) File "/Users/MacMini/Dropbox/Boriel/1.4.0/arch/zx48k/translator.py", line 542, in visit_ARRAYACCESS self.emit('param' + self.TSUFFIX(gl.BOUND_TYPE), node.entry.bounds.count) AttributeError: 'SymbolBOUNDLIST' object has no attribute 'count'
Very similar to the error given with version 1.4.0alpha-s1769, the only difference I can see is the last error is on line 542 instead of 538.

So, to summarise, here are the versions I have tried and the results:

1.3.0-s1771 - Out of Memory error
1.4.0s1864 - Out of Memory error
1.4.0alpha-s1769 - Fails to compile
1.4.0-s1876 - Fails to compile
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)