Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-12-13 | Allow escripts with only two lines | Jing Peng | |
The current implementation assumes that escripts all have at least three lines. But according to the escript documentation, comments on the second line and emulator flags on the third line are all optional. Thus escripts with only two lines -- shebang on the first line and code on the second line -- will not run. This commit fixes the problem by rearranging the escript header parsing logic, and recognize the escript body on the second line if the header only contains a line of shebang. |