From fc55daf22dd890860ac9c1a0a29900977a700df2 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 8 Aug 2022 16:06:08 +0200 Subject: start self hosted comler --- src/parse.hff | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/parse.hff (limited to 'src/parse.hff') diff --git a/src/parse.hff b/src/parse.hff new file mode 100644 index 0000000..463dd26 --- /dev/null +++ b/src/parse.hff @@ -0,0 +1,18 @@ +struct Loc { + fileid u16, + idx isize, + col int, + line int, +} + +#[lax] +enum TokT { + kw_or +} + +struct Tok { + t int, + u union { + i i64 + }, +} -- cgit v1.2.3