10-24-2011, 06:59 AM
nitrofurano Wrote:here is my very slow version of the code, not yet as library, and displaying some error messages from the compilerThis is a compiler bug (your code has a syntax error, but I will fix the compiler, so it will print such error msg.)
surelly i did some very stupid mistakes here, and still without any assembly line beyond that 'defb' likes with the charmaps, and still missing the colour attribute part, but i think this can be a starting point for something - what do you all think about?
the error message i got is this:
Code:guest@macbook_mint1 /mnt/sda4/trabalhos/programacao/8bit/zxspectrum/_sandbox/boriel_64x32 $ zxb.py -tBa print64x32.bas
Traceback (most recent call last):
File "/opt/zxbasiccompiler/zxb.py", line 312, in <module>
sys.exit(main(sys.argv)) # Exit
File "/opt/zxbasiccompiler/zxb.py", line 241, in main
zxbparser.parser.parse(input, lexer = zxblex.lexer, tracking = True, debug = (OPTIONS.Debug.value > 2))
File "/mnt/sda4/opt/zxbasiccompiler/ply/yacc.py", line 263, in parse
return self.parseopt(input,lexer,debug,tracking,tokenfunc)
File "/mnt/sda4/opt/zxbasiccompiler/ply/yacc.py", line 710, in parseopt
p.callable(pslice)
File "/mnt/sda4/opt/zxbasiccompiler/zxbparser.py", line 3732, in p_code
syntax_error_expected_string(p.lineno(1), NAME_TYPES[p[2]._type])
KeyError: None
guest@macbook_mint1 /mnt/sda4/trabalhos/programacao/8bit/zxspectrum/_sandbox/boriel_64x32 $