Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Currently supported grammars are:
| [Erlang] | | Yes | [language-erlang] | `erl` | Limited selection based runs only (see [#70]). |
| [F*] | Yes | | [atom-fstar] | `fstar` | |
| [F#] | Yes | | [language-fsharp] | `fsharpi`/`fsi.exe` | |
| [Factor] | Yes | | [language-factor] | `factor` | |
| [Fish] | Yes | Yes | [language-fish-shell] | `fish` | |
| [Forth] | Yes | | [language-forth] | `gforth` | |
| [Fortran] | Yes | | [language-fortran] | [`gfortran`] | |
Expand Down Expand Up @@ -156,6 +157,7 @@ Currently supported grammars are:
[es6]: https://babeljs.io/learn-es2015
[f*]: https://fstar-lang.org
[f#]: http://fsharp.org
[factor]: https://factorcode.org/
[file]: https://atom.io/packages/language-batchfile
[fish]: https://fishshell.com
[forth]: https://gnu.org/software/gforth
Expand Down Expand Up @@ -189,6 +191,7 @@ Currently supported grammars are:
[language-dot]: https://atom.io/packages/language-dot
[language-elixir]: https://atom.io/packages/language-elixir
[language-erlang]: https://atom.io/packages/language-erlang
[language-factor]: https://atom.io/packages/language-factor
[language-fish-shell]: https://atom.io/packages/language-fish-shell
[language-forth]: https://atom.io/packages/language-forth
[language-fortran]: https://atom.io/packages/language-fortran
Expand Down
2 changes: 2 additions & 0 deletions lib/grammars.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import c from "./grammars/c"
import coffeescript from "./grammars/coffeescript"
import database from "./grammars/database"
import doc from "./grammars/doc"
import factor from "./grammars/factor"
import fortran from "./grammars/fortran"
import haskell from "./grammars/haskell"
import * as java from "./grammars/java"
Expand All @@ -29,6 +30,7 @@ const Grammars = {
...coffeescript,
...database,
...doc,
...factor,
...fortran,
...haskell,
...java,
Expand Down
19 changes: 19 additions & 0 deletions lib/grammars/factor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"use babel"

const Factor = {
"Selection Based": {
command: "factor",
args({ selection }) {
return ["-e=<< USE: parser auto-use >> " + selection.getText()]
},
},

"File Based": {
command: "factor",
args({ filepath }) {
return [filepath]
},
},
}

export default { Factor }