How to edit a Sublime text 3 system for a circuit to allow input from a file?

I use mit-scheme and edit the source file with Sublime Text 3. In the build system I set the configuration

{
    "cmd": ["mit-scheme", "--load", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.scheme"
}

but --loaddoes not evaluate the code, i.e. it just loads the code without generating output. How to set a configuration parameter so that when clicked ctrl+Bit produces the same result as when it was started mit-scheme < filename.scmon the command line?

Thanks!

+4
source share
1 answer

shell_cmd cmd, , . Linux /bin/sh, Windows COMSPEC (. Python Popen help, exec ).

shell_cmd, , . , , .

, :

{
    "shell_cmd": "mit-scheme < \"$file\"",
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.scheme"
}

, $file , , - . , JSON, (, \", ").

0

Source: https://habr.com/ru/post/1622359/


All Articles