diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2021-11-25 10:05:01 +0200 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2021-11-25 19:01:31 +0200 |
| commit | 4abdbaabd69a5aac827cb4e2f98c27e5661885cf (patch) | |
| tree | 4cfa84a9959eebed56d6b276c7c2e2b6ea9b8403 | |
| parent | c04609bcdb7c7952501ddffc82fb97246ae0f6d4 (diff) | |
Add license and readme
| -rw-r--r-- | LICENSE | 7 | ||||
| -rw-r--r-- | README.md | 28 | ||||
| -rw-r--r-- | samples/sample1.tunk (renamed from samples/sample1.code) | 0 | ||||
| -rw-r--r-- | samples/sample2.tunk (renamed from samples/sample2.code) | 0 | ||||
| -rw-r--r-- | src/main.rs | 2 |
5 files changed, 36 insertions, 1 deletions
@@ -0,0 +1,7 @@ +Copyright (c) 2021, Jan Tuomi + +Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +Source: http://opensource.org/licenses/ISC diff --git a/README.md b/README.md new file mode 100644 index 0000000..401671e --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# Tunk + +**Tunk** is a + +- strongly and dynamically typed +- pure functional +- interpreted +- general use + +programming language. Tunk is a hobby project written for educational purposes. + +## Running Tunk + +Build the `tunk` interpreter with `cargo`: + + cargo build --release + +Run `tunk` on a source file: + + target/release/tunk run samples/sample1.tunk + +Run `tunk` REPL: + + target/release/tunk repl + +## Author + +Jan Tuomi, <<jans.tuomi@gmail.com>> diff --git a/samples/sample1.code b/samples/sample1.tunk index 168421b..168421b 100644 --- a/samples/sample1.code +++ b/samples/sample1.tunk diff --git a/samples/sample2.code b/samples/sample2.tunk index eedd45d..eedd45d 100644 --- a/samples/sample2.code +++ b/samples/sample2.tunk diff --git a/src/main.rs b/src/main.rs index 3b09791..5546094 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,7 +60,7 @@ fn main() -> Result<(), String> { use std::io::{stdin, stdout, Write}; use std::rc::Rc; - println!("REPL"); + println!("Tunk REPL"); println!("\"#exit\" to exit"); println!("\"#symbols\" to display symbol table\n"); |
