When writing a SSLANG source program, if I leave a blank line at the top of the file or try to make a comment the first line in the file, the compiler throws a parsing error. Below is an example of this behavior.
Example program:
// a comment here
type Tree
TwoChildren Tree Tree
Leaf
OneChild Int Tree
main ( cout : & Int ) -> () =
let d = Leaf
let zzz = match d
Leaf = 65
_ = 66
// correct output should be 65 'A'
after 10 , (cout : & Int) <- zzz
wait (cout : & Int)
When writing a SSLANG source program, if I leave a blank line at the top of the file or try to make a comment the first line in the file, the compiler throws a parsing error. Below is an example of this behavior. Example program:
Error ouput from runtests.log:
This is likely a very simple fix, but I haven't had time to investigate it deeply yet so I am documenting it here for now.