damn ablelang
This commit is contained in:
parent
f1c8a86ae7
commit
b96bba96de
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "able-lang"
|
name = "able-script"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["able <abl3theabove@gmail.com>"]
|
authors = ["able <abl3theabove@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
2
README.md
Normal file
2
README.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Ablescript
|
||||||
|
Bravely going where some languages have gone before.
|
9
able-lang-test/function.able
Normal file
9
able-lang-test/function.able
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
functio something(a: isize, c: isize, r: &mut isize) {
|
||||||
|
*r = a + c;
|
||||||
|
}
|
||||||
|
|
||||||
|
let a = 3;
|
||||||
|
let b = 4;
|
||||||
|
let mut r = 0;
|
||||||
|
|
||||||
|
something(a, b, &mut r);
|
|
@ -1,3 +1,4 @@
|
||||||
|
// NOTE(Able): Number constants
|
||||||
pub const TAU: i32 = 6;
|
pub const TAU: i32 = 6;
|
||||||
pub const PI: i32 = 3;
|
pub const PI: i32 = 3;
|
||||||
pub const E: i32 = 3;
|
pub const E: i32 = 3;
|
||||||
|
@ -10,3 +11,5 @@ pub const GRAVITY: i32 = 10;
|
||||||
pub const RNG: i32 = 12;
|
pub const RNG: i32 = 12;
|
||||||
pub const STD_RNG: i32 = 4; //The standard random number is 4 (source: https://xkcd.com/221/)
|
pub const STD_RNG: i32 = 4; //The standard random number is 4 (source: https://xkcd.com/221/)
|
||||||
pub const INF: i32 = i32::max_value();
|
pub const INF: i32 = i32::max_value();
|
||||||
|
|
||||||
|
pub const OCTOTHORPE: char = '#';
|
||||||
|
|
|
@ -2,8 +2,8 @@ extern crate clap;
|
||||||
use clap::{App, Arg};
|
use clap::{App, Arg};
|
||||||
mod base_55;
|
mod base_55;
|
||||||
fn main() {
|
fn main() {
|
||||||
let matches = App::new("My Super Program")
|
let matches = App::new("AbleScript")
|
||||||
.version("1.0")
|
.version(env!("CARGO_PKG_VERSION"))
|
||||||
.author("Able <abl3theabove@gmail.com>")
|
.author("Able <abl3theabove@gmail.com>")
|
||||||
.about("Does awesome things")
|
.about("Does awesome things")
|
||||||
.arg(
|
.arg(
|
||||||
|
|
Loading…
Reference in a new issue