From bc83775a927e14c9ed13bcfc0bd5b4aa2d332e7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=B6=E5=A1=9A=E5=A4=AA=E6=99=BA?= Date: Sat, 27 Jul 2024 12:10:53 +0900 Subject: [PATCH] Update README.md --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 33ae9c8..dd13a70 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,18 @@ print result; ## Usage Rust is needed to use ScriptS. You have to install it. -Let's try below command to run script. + +sub-command `code` is to run script. +``` +cargo run -- run example.ss +``` + +sub-command `code` is to show Python code generated. +``` +cargo run -- code example.ss +``` + +sub-command `ast` is to show abstract syntax tree. ``` -cargo run -- example.ss +cargo run -- ast example.ss ```