File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,5 @@ npm-debug.log
3
3
node_modules
4
4
examples /test /
5
5
.sass-cache /
6
+ .idea
7
+ * .iml
Original file line number Diff line number Diff line change
1
+
2
+ (* My Hello World program *)
3
+ print " Hello World!"
Original file line number Diff line number Diff line change 1
1
{command } = GrammarUtils = require ' ../grammar-utils'
2
+ path = require ' path'
2
3
3
4
windows = GrammarUtils .OperatingSystem .isWindows ()
4
5
@@ -28,3 +29,17 @@ module.exports =
28
29
file = filename .replace / \. re$ / , ' .native'
29
30
GrammarUtils .formatArgs (" rebuild '#{ file} ' && '#{ file} '" )
30
31
}
32
+
33
+ ' Standard ML' :
34
+ ' File Based' : {
35
+ command : ' sml'
36
+ args : ({filename}) -> return [filename];
37
+ }
38
+
39
+ ' Selection Based' : {
40
+ command : ' sml'
41
+ args : (context ) ->
42
+ code = context .getCode ()
43
+ tmpFile = GrammarUtils .createTempFileWithCode (code, ' .sml' )
44
+ return [tmpFile]
45
+ }
You can’t perform that action at this time.
0 commit comments