Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
64 char print - 32 lines version
#8
nitrofurano Wrote:here is my very slow version of the code, not yet as library, and displaying some error messages from the compiler
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 $
This is a compiler bug (your code has a syntax error, but I will fix the compiler, so it will print such error msg.)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)