This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::ops::Range; | |
| #[derive(Debug, Clone)] | |
| pub struct ASTNode { | |
| pub span: Range<usize>, | |
| pub file: String, | |
| pub node: ASTNodeKind, | |
| pub attributes: Vec<Attribute>, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"); | |
| }) |