-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add editing mode to
fungoid ide
(#14)
- Loading branch information
1 parent
5419cc4
commit f418de7
Showing
20 changed files
with
546 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Changelog | ||
|
||
## 0.2.1 | ||
|
||
### Added | ||
|
||
- IDE mode now allows editing of the program. | ||
- A set of example programs is now bundled into the `fungoid` executable. | ||
Run `fungoid examples` to see the `NAME`s of the examples, | ||
and `fungoid run example:NAME` or `fungoid ide example:NAME` to execute them. | ||
|
||
### Changed | ||
|
||
- Errors during program execution now return `Result`s instead of panicking. | ||
|
||
## 0.2.0 | ||
|
||
### Added | ||
|
||
- Added IDE mode (`fungoid ide FILE`), with visual execution of programs. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
unstable_features = true | ||
|
||
imports_granularity = "Crate" | ||
group_imports = "StdExternalCrate" | ||
|
||
combine_control_expr = false | ||
|
||
reorder_impl_items = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
use std::collections::HashMap; | ||
|
||
pub const DNA: &str = include_str!("examples/dna.bf"); | ||
pub const ERATOSTHENES: &str = include_str!("examples/eratosthenes.bf"); | ||
pub const FACTORIAL: &str = include_str!("examples/factorial.bf"); | ||
pub const HELLO_WORLD: &str = include_str!("examples/hello_world.bf"); | ||
pub const INPUT: &str = include_str!("examples/input.bf"); | ||
pub const QUINE: &str = include_str!("examples/quine.bf"); | ||
pub const RNG: &str = include_str!("examples/rng.bf"); | ||
|
||
lazy_static! { | ||
pub static ref EXAMPLES: HashMap<&'static str, &'static str> = { | ||
let mut m = HashMap::new(); | ||
m.insert("dna", DNA); | ||
m.insert("eratosthenes", ERATOSTHENES); | ||
m.insert("factorial", FACTORIAL); | ||
m.insert("hello_world", HELLO_WORLD); | ||
m.insert("input", INPUT); | ||
m.insert("quine", QUINE); | ||
m.insert("rng", RNG); | ||
m | ||
}; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.