diff --git a/build_docs.py b/build_docs.py index a855d54..91eac88 100644 --- a/build_docs.py +++ b/build_docs.py @@ -1,7 +1,7 @@ import subprocess import os -os.system("mdbook build --dest-dir './book") +os.system("mdbook build --dest-dir './book'") os.system("mdbook build --dest-dir './book/latest'") tags = subprocess.run(["git", "tag"], stdout=subprocess.PIPE).stdout.decode('utf-8') diff --git a/src/parser/rules.rs b/src/parser/rules.rs index 364e07c..c70f663 100644 --- a/src/parser/rules.rs +++ b/src/parser/rules.rs @@ -201,6 +201,9 @@ impl Parser { let value = next.raw.parse::().map_err(|e| e.to_string())?; elements.push(Expression::Int(value)); } + TokenKind::Literal(Value::Str) => { + elements.push(Expression::Str(next.raw)); + } _ => return Err(self.make_error(TokenKind::Identifier("Argument".into()), next)), }; if self.peek_token(TokenKind::SquareBraceClose).is_ok() { diff --git a/src/parser/tests.rs b/src/parser/tests.rs index 3be2a1f..9d69581 100644 --- a/src/parser/tests.rs +++ b/src/parser/tests.rs @@ -366,7 +366,6 @@ fn test_int_array() { } #[test] -#[ignore] fn test_string_array() { let raw = " fn main(n) {