damn ablelang

pull/11/head
able 2021-04-11 14:11:39 -05:00
parent f1c8a86ae7
commit b96bba96de
5 changed files with 17 additions and 3 deletions

View File

@ -1,5 +1,5 @@
[package]
name = "able-lang"
name = "able-script"
version = "0.1.0"
authors = ["able <abl3theabove@gmail.com>"]
edition = "2018"

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# Ablescript
Bravely going where some languages have gone before.

View 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);

View File

@ -1,3 +1,4 @@
// NOTE(Able): Number constants
pub const TAU: i32 = 6;
pub const PI: i32 = 3;
pub const E: i32 = 3;
@ -10,3 +11,5 @@ pub const GRAVITY: i32 = 10;
pub const RNG: i32 = 12;
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 OCTOTHORPE: char = '#';

View File

@ -2,8 +2,8 @@ extern crate clap;
use clap::{App, Arg};
mod base_55;
fn main() {
let matches = App::new("My Super Program")
.version("1.0")
let matches = App::new("AbleScript")
.version(env!("CARGO_PKG_VERSION"))
.author("Able <abl3theabove@gmail.com>")
.about("Does awesome things")
.arg(