Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: maximinus on Apr 7th, 2012  |  syntax: None  |  size: 0.49 KB  |  views: 270  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ;Some examples of compiler code that should compile fine.
  2. ;I had added my reasoning for each one
  3.  
  4. :start  set a, 5                ;uses tabs
  5.         set b, 5        ;uses spaces
  6.  
  7.                 set a, 5                ;case is not important
  8.                 SET A, 5
  9.  
  10.                 set a, start    ;labels should be fine
  11.                 set a, end              ;as should forward labels
  12.                
  13. :data   dat "test"              ;should be able to handle data constructs
  14.                 dat "test", 0   ;and mixed data
  15.                 dat 3, 5, 6             ;of both types
  16.                
  17.                 set a,  5               ;number of spaces should be no issue
  18. :end    set a,5