Spin syntax: are multi-line statements a thing?
Andrey Demenev
Posts: 416
in Propeller 2
I am trying to put together a simple tokenizer for syntax highlighting purposes, and from what I have seen, statements cannot span multiple lines. Is that true? That would make my code a bit simpler

Comments
Three dots can be used to ignore the rest of the line and continue parsing into the next line (from Spin2 documentation).
STRUCT dir_entry_t(BYTE name[8], BYTE ext[3], BYTE attr, BYTE ntRes, BYTE crtTenth, ... WORD crtTime, WORD crtDate, WORD accDate, WORD clusHI, ... WORD wrtTime, WORD wrtDate, WORD clusLO, LONG fileSize)I wish I had known that. I have done silly things like.....
mask_info_H { // 16 bytes — Level H format information words, masks 0-7 } word 5769, {// Mask H-0 (001011010001001) } 5054, {// Mask H-1 (001001110111110) } 7399, {// Mask H-2 (001110011100111) } 6608, {// Mask H-3 (001100111010000) } 1890, {// Mask H-4 (000011101100010) } 597, {// Mask H-5 (000001001010101) } 3340, {// Mask H-6 (000110100001100) } 2107 {// Mask H-7 (000100000111011)}I really should sit down and read the whole Spin2 Doc
Thanks!
Of the many nice things about Spin Tools, yesterday I -- without thinking -- used the ellipsis to extend a line in a P1 program and found it works. Note that it does not work for the P1 in Propeller Tool.