From 318480f0b579d3ad3e58ea3d8b77eddf07002432 Mon Sep 17 00:00:00 2001 From: Selimaj Dev Date: Tue, 19 May 2026 12:14:25 +0200 Subject: [PATCH] Fixed string and macro, and main --- parser/src/grammar.pest | 3 ++- src/main.mist | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/parser/src/grammar.pest b/parser/src/grammar.pest index e3c91db..992e273 100644 --- a/parser/src/grammar.pest +++ b/parser/src/grammar.pest @@ -477,7 +477,8 @@ array = { // ------------------------------------------------------ macro_inner_v = { - "(" ~ macro_inner_v* ~ ")" + string_lit + | ("(" ~ macro_inner_v* ~ ")") | (!("(" | ")") ~ ANY) } diff --git a/src/main.mist b/src/main.mist index f211656..a955afd 100644 --- a/src/main.mist +++ b/src/main.mist @@ -42,4 +42,19 @@ void main() { void print_usage() { println!("Mist - the mist compiler\n"); + println!("󰖟 View our documentation! \x1b[35mhttps://mist.selimaj.dev\x1b[0m"); + println!(" Follow us on github! \x1b[35mhttps://github.com/mist-go\x1b[0m\n"); + println!("usage:"); + println!(" \x1b[36m mist run\x1b[0m,\x1b[36m r\x1b[0m run the project in the current directory\n"); + println!( + " \x1b[36m mist build\x1b[0m,\x1b[36m b\x1b[0m build the project in the current directory\n" + ); + println!( + " \x1b[36m mist transpile\x1b[0m,\x1b[36m t\x1b[0m transpile the project in the current directory\n" + ); + println!( + " \x1b[36m mist check\x1b[0m,\x1b[36m c\x1b[0m check the project in the current directory\n" + ); + println!(" \x1b[36m mist version \x1b[0m print the compiler version\n"); + println!(" \x1b[36m mist help\x1b[0m print this message\n"); }