Skip to content

Instantly share code, notes, and snippets.

use std::collections::HashMap;
use std::ops::Range;
use crate::ast::{BinOp, UnOp, AssignOp, Visibility, Kind};
use crate::typechecker::EffectSet;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct MemorySlotId(pub usize);
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
use std::ops::Range;
#[derive(Debug, Clone)]
pub struct ASTNode {
pub span: Range<usize>,
pub file: String,
pub node: ASTNodeKind,
pub attributes: Vec<Attribute>,
}
@re-masashi
re-masashi / discord-js-boilerplate.js
Created August 3, 2021 05:31
A boilerplate for Discord.js. Just add functions and get started.
const Discord = require('discord.js');
const client = new Discord.Client();
const botPrefix = "{{prefix}}";
const lengthOfPrefix = len(botPrefix);
/* BotLogin handler */
client.on('ready',()=>{
client.user.setActivity("with Fire");
})