From b70865071aa3fc6599f0542b5a76843029197517 Mon Sep 17 00:00:00 2001 From: Erin Date: Tue, 3 Oct 2023 01:44:15 +0200 Subject: [PATCH] Add KW --- src/syntax/ast.rs | 0 src/syntax/mod.rs | 1 + src/syntax/token.rs | 1 + 3 files changed, 2 insertions(+) create mode 100644 src/syntax/ast.rs diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs new file mode 100644 index 0000000..e69de29 diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs index 79c66ba..846ab01 100644 --- a/src/syntax/mod.rs +++ b/src/syntax/mod.rs @@ -1 +1,2 @@ +pub mod ast; pub mod token; diff --git a/src/syntax/token.rs b/src/syntax/token.rs index a9e6a8e..e165690 100644 --- a/src/syntax/token.rs +++ b/src/syntax/token.rs @@ -47,6 +47,7 @@ pub enum Token { #[token("include")] Include, #[token("switch")] Switch, #[token("loop")] Loop, + #[token("asm")] Asm, #[regex( r"\p{XID_Start}\p{XID_Continue}*",