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 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), |
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
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() |
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
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 |