Skip to content

Commit

Permalink
[NAMING] renmaing Ygen to ygen
Browse files Browse the repository at this point in the history
  • Loading branch information
Cr0a3 committed Aug 23, 2024
1 parent dd9f492 commit 4e5f823
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 30 deletions.
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ members = [
]

[workspace.dependencies]
Ygen = { path = "." }
ygen = { path = "." }
proc = { path = "src/proc/."}

[package]
name = "Ygen"
name = "ygen"
version = "0.1.1"
edition = "2021"
authors = ["Cr0a3"]
Expand Down
2 changes: 1 addition & 1 deletion examples/helloworld.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::{error::Error, fs::OpenOptions, path::Path};
use Ygen::{prelude::*, Support::ColorProfile, Target::initializeAllTargets};
use ygen::{prelude::*, Support::ColorProfile, Target::initializeAllTargets};


pub fn main() -> Result<(), Box<dyn Error>> {
Expand Down
2 changes: 1 addition & 1 deletion examples/obj.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{error::Error, fs::OpenOptions};

use Ygen::{Obj::*, Target::Triple};
use ygen::{Obj::*, Target::Triple};

fn main() -> Result<(), Box<dyn Error>> {
let mut obj = ObjectBuilder::new(
Expand Down
2 changes: 1 addition & 1 deletion examples/simple.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::{error::Error, fs::OpenOptions, path::Path};
use Ygen::{prelude::*, Support::ColorProfile, Target::initializeAllTargets};
use ygen::{prelude::*, Support::ColorProfile, Target::initializeAllTargets};


pub fn main() -> Result<(), Box<dyn Error>> {
Expand Down
2 changes: 1 addition & 1 deletion src/Target/x64/asm/instr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ pub enum Operand {
Mem(MemOp),
/// The link destination
LinkDestination(String, i64),
//// For debugging pourpusis
/// For debugging
Debug(String),
}

Expand Down
2 changes: 1 addition & 1 deletion tools/simplelang/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ name = "simplelang"
path = "main.rs"

[dependencies]
Ygen = { workspace = true }
ygen = { workspace = true }
logos = "0.14.0"
unescaper = "0.1.5"
2 changes: 1 addition & 1 deletion tools/simplelang/ast.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use Ygen::IR::TypeMetadata;
use ygen::IR::TypeMetadata;


#[derive(Debug, Clone, PartialEq, Eq)]
Expand Down
2 changes: 1 addition & 1 deletion tools/simplelang/codegen.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::collections::{HashMap, VecDeque};

use Ygen::prelude::*;
use ygen::prelude::*;

use crate::ast::*;

Expand Down
4 changes: 2 additions & 2 deletions tools/simplelang/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ macro_rules! expect {
macro_rules! err {
($err_var:expr, $($arg:tt)+) => {
$err_var = true;
use Ygen::Support::Colorize;
use ygen::Support::Colorize;
eprintln!("{}: {}", "Error".red().bold(), format_args!($($arg)+))
};
}

#[macro_export]
macro_rules! warn {
($($arg:tt)+) => {
use Ygen::Support::Colorize;
use ygen::Support::Colorize;
eprintln!("{}: {}", "Warning".yellow().bold(), format_args!($($arg)+))
};
}
2 changes: 1 addition & 1 deletion tools/simplelang/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{error::Error, fs::{File, OpenOptions}, io::Read, process::exit};
use logos::Logos;
use Ygen::{prelude::*, Support::{Cli, ColorProfile, Colorize}, Target::initializeAllTargets};
use ygen::{prelude::*, Support::{Cli, ColorProfile, Colorize}, Target::initializeAllTargets};

mod lexer;
mod parser;
Expand Down
2 changes: 1 addition & 1 deletion tools/simplelang/parser.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::collections::VecDeque;

use Ygen::IR::TypeMetadata;
use ygen::IR::TypeMetadata;
use crate::lexer::Token;
use crate::{ast::*, err, expect, warn};

Expand Down
2 changes: 1 addition & 1 deletion tools/simplelang/semnatic.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::collections::{HashMap, VecDeque};

use Ygen::IR::TypeMetadata;
use ygen::IR::TypeMetadata;

use crate::{ast::*, err, warn};
//use crate::macros::*;
Expand Down
2 changes: 1 addition & 1 deletion tools/ygen-mc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ name = "ygen-mc"
path = "main.rs"

[dependencies]
Ygen = { workspace = true }
ygen = { workspace = true }
8 changes: 4 additions & 4 deletions tools/ygen-mc/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#![allow(rustdoc::invalid_html_tags)]

//! # `ygen-mc`: Ygen machine code code playground
//! # `ygen-mc`: ygen machine code code playground
//! With the ygen machine code playground you can play around with assembler instructions
//! and see their opcodes. <br>
//! It's suppused to being the Ygen variant of the `llvm-mc`
//! It's suppused to being the ygen variant of the `llvm-mc`
//! ### Usage
//! **Options:** <br>
//!
Expand All @@ -19,10 +19,10 @@

use std::error::Error;

use Ygen::{self, Support::{ColorProfile, Colorize}, Target::{initializeAllTargets, Triple}};
use ygen::{self, Support::{ColorProfile, Colorize}, Target::{initializeAllTargets, Triple}};

fn main() -> Result<(), Box<dyn Error>> {
let mut cli = Ygen::Support::Cli::new(
let mut cli = ygen::Support::Cli::new(
"ygen-mc", "Ygens machine code playground", "1.0", "Cr0a3"
);

Expand Down

0 comments on commit 4e5f823

Please sign in to comment.