Skip to content

Instantly share code, notes, and snippets.

View bend-n's full-sized avatar

bendn bend-n

View GitHub Profile
use itertools::Itertools;
use std::{collections::VecDeque, fmt, io::Read};
struct P(Vec<Token>);
impl fmt::Display for P {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
#[rustfmt::skip]
macro_rules! w { ($x:expr) => {
match $x {
N(x) => x.fmt(f),
pub struct Lines<'a> {
bytes: &'a [u8],
}
impl<'a> Iterator for Lines<'a> {
type Item = &'a [u8];
fn next(&mut self) -> Option<Self::Item> {
self.bytes.take_line()
extends Node2D
var refs := [] # = [[ node : object, variable : string, (code : string) ]]
var style := StyleBoxFlat.new()
var font: Font
var debug := false
var expr := Expression.new()
const offset := Vector2(10, 10)
const vertical := 15