Skip to content

Conversation

wrigleyster
Copy link

With a bit of luck this will enable support for hashbangs in mosml source files when mosml is called with -s or -hashbang ("s" for scripted?)

example of test.sml:
---start---

!/usr/bin/mosml -s

load "TextIO";
TextIO.print("Hello World!\n")
---eof---

Really allows #!-to-eol comments anywhere in a file. Ought to add
checks to make sure #!comments are only allowed on the first line
mosml no longer waits for input after EOF when run with -hashbang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant