An update!
Just minor tweaks and slight updates.
This commit is contained in:
parent
1cc7b2ec6c
commit
aaf6455762
4 changed files with 21 additions and 50 deletions
20
README.md
20
README.md
|
@ -1,14 +1,13 @@
|
|||
# Corten
|
||||
|
||||
Corten is a RISC virtual machine written in Rust as a hobby and based on Fletcher Haynes's [So you want to build a language VM](https://blog.subnetzero.io/post/building-language-vm-part-01/) tutorial.
|
||||
Corten is a RISC-V virtual machine written in Rust as a hobby and based on Fletcher Haynes's [So you want to build a language VM](https://blog.subnetzero.io/post/building-language-vm-part-01/) tutorial.
|
||||
|
||||
## Build Status
|
||||
|
||||
| Service | Status |
|
||||
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| --------- | ----------------------------------------------------------------------------------------------------------------- |
|
||||
| Github |  |
|
||||
| Travis CI | [](https://travis-ci.org/tonytins/corten) |
|
||||
| AppVeyor | [](https://ci.appveyor.com/project/tonytins/corten) |
|
||||
|
||||
## Specifications
|
||||
|
||||
|
@ -21,20 +20,7 @@ See [specifications](docs/spec.md) page.
|
|||
- Rust 1.41+
|
||||
- Recommended IDEs
|
||||
- Visual Studio Code
|
||||
- Jetbrains IntelliJ
|
||||
|
||||
### Supported Platforms
|
||||
|
||||
- Ubuntu 18.04+
|
||||
- Windows 10 v1809+
|
||||
- macOS 10.15+
|
||||
|
||||
## Authors
|
||||
|
||||
- **Anthony Foxclaw** - *Initial work* - [tonytins](https://github.com/tonytins)
|
||||
- **Fletcher Haynes** - *Tutorial* - [fletchercp](https://gitlab.com/fletchercp)
|
||||
|
||||
See also the list of [contributors](https://github.com/tonytins/simtactics/contributors) who participated in this project.
|
||||
- Jetbrains IntelliJ or CLion
|
||||
|
||||
## License
|
||||
|
||||
|
|
|
@ -1,27 +1,11 @@
|
|||
# Welcome
|
||||
|
||||
Corten is a RISC virtual machine written in Rust as a hobby and based on Fletcher Haynes's [So you want to build a language VM](https://blog.subnetzero.io/post/building-language-vm-part-01/) tutorial.
|
||||
Corten is a RISC-V virtual machine written in Rust as a hobby and based on Fletcher Haynes's [So you want to build a language VM](https://blog.subnetzero.io/post/building-language-vm-part-01/) tutorial.
|
||||
|
||||
## Specifications
|
||||
|
||||
See [specifications](spec.md) page.
|
||||
|
||||
## Build Status
|
||||
|
||||
| Service | Status |
|
||||
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| Github |  |
|
||||
| Travis CI | [](https://travis-ci.org/tonytins/corten) |
|
||||
| AppVeyor | [](https://ci.appveyor.com/project/tonytins/corten) |
|
||||
|
||||
## Requirements
|
||||
|
||||
### Supported Platforms
|
||||
|
||||
- Ubuntu 18.04+
|
||||
- Windows 10 v1809+
|
||||
- macOS 10.15+
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the MPL 2.0 license - see the [LICENSE](LICENSE) file for details.
|
|
@ -15,6 +15,7 @@ pub enum Token {
|
|||
Number { value: i32 },
|
||||
}
|
||||
|
||||
// RISC-V opcodes
|
||||
#[derive(Debug, PartialEq, Clone)]
|
||||
pub enum Opcode {
|
||||
HLT,
|
||||
|
|
|
@ -21,7 +21,7 @@ mod opcode_parser_test {
|
|||
|
||||
#[test]
|
||||
fn test_parser_op_load() {
|
||||
// Test that opcode is dected and parsed correctly
|
||||
// Test that opcode is detected and parsed correctly
|
||||
let result = opcode(CompleteStr("load"));
|
||||
assert_eq!(result.is_ok(), true);
|
||||
let (rest, token) = result.unwrap();
|
||||
|
|
Reference in a new issue