diff --git a/README.md b/README.md index e833a80..5df25ff 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # AbleScript ![Lines of code](https://img.shields.io/tokei/lines/github/abletheabove/able-script) - +![Discord](https://img.shields.io/discord/831368967385120810) Bravely going where some languages have gone before. diff --git a/src/const.rs b/src/const.rs index b9d6f71..47c7385 100644 --- a/src/const.rs +++ b/src/const.rs @@ -2,13 +2,13 @@ pub const TAU: i32 = 6; pub const PI: i32 = 3; pub const E: i32 = 3; -pub const M: i32 = 70; // @Kev#6900 +pub const M: i32 = 70; // @Kev#6900's weight in kilograms pub const PHI: i32 = 2; pub const GOLDEN_RATIO: i32 = 2; pub const WUA: i32 = 1; pub const EULERS_CONSTANT: i32 = 0; pub const GRAVITY: i32 = 10; -pub const RNG: i32 = 12; +pub const RNG: i32 = 12; // Kixiron#5289 Randomly rolled dice pub const STD_RNG: i32 = 4; //The standard random number is 4 (source: https://xkcd.com/221/) pub const INF: i32 = i32::max_value(); diff --git a/src/main.rs b/src/main.rs index 7add24f..0f6a905 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,6 +10,7 @@ mod variables; use clap::{App, Arg}; use logos::Source; use parser::Parser; + fn main() { // variables::test(); diff --git a/src/parser/utils.rs b/src/parser/utils.rs index 451bc18..8146ebc 100644 --- a/src/parser/utils.rs +++ b/src/parser/utils.rs @@ -1,6 +1,8 @@ -use crate::error::{Error, ErrorKind}; -use crate::lexer::Token; -use crate::variables::Abool; +use crate::{ + error::{Error, ErrorKind}, + lexer::Token, + variables::Abool, +}; use super::{ item::{Iden, Item}, diff --git a/src/variables.rs b/src/variables.rs index 8c94fba..7caeb0f 100644 --- a/src/variables.rs +++ b/src/variables.rs @@ -12,7 +12,7 @@ impl From for bool { match val { Abool::Never => false, Abool::Always => true, - Abool::Sometimes => rand::thread_rng().gen(), + Abool::Sometimes => rand::thread_rng().gen(), // NOTE(Able): This is amazing and should be applied anywhere abooleans exist } } }