Skip to content

Instantly share code, notes, and snippets.

View Traumatism's full-sized avatar

Victor Traumatism

  • CPGE MP2I
  • France
View GitHub Profile
@Traumatism
Traumatism / main.rs
Created March 4, 2023 08:09
Math expression to AST in Rust
use std::iter::Peekable;
/// Lexer for parsing basic mathematical expressions.
struct Lexer<'a> {
/// The input string to tokenize.
input: &'a str,
/// The current position of the lexer in the input string.
current_position: usize,
}
### Keybase proof
I hereby claim:
* I am traumatism on github.
* I am mclareeen (https://keybase.io/mclareeen) on keybase.
* I have a public key ASBtYPltY8Tt7NvdqJs5GWkH4r4TYJmfFZaObuodIMB4MAo
To claim this, I am signing this object:
@Traumatism
Traumatism / mullfet.sh
Last active July 7, 2022 09:05
Fetch Mullvad informations
#!/bin/sh
r="" # red
y="" # yellow
w="" # white
STATE_ICON=""
IP_ICON="ﰍ"
SERVER_ICON=""
ACCOUNT_ICON=""