From: momoyon Date: Sun, 30 Mar 2025 15:51:08 +0000 (+0500) Subject: [test.bat] Add test script for windows. X-Git-Url: https://www.git.momoyon.org/?a=commitdiff_plain;h=244815876c96592164ec4d345efc83ab26da5b59;p=lang.git [test.bat] Add test script for windows. --- diff --git a/main.c b/main.c index 8c63457..926da61 100644 --- a/main.c +++ b/main.c @@ -310,6 +310,20 @@ void free_lexer(Lexer *l) { free(l->src.data); } + +/* Understanding BNF [Backus-Naur Form](https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form): +* +* Example Context-Free-Grammar (CFG): +* +* breakfast -> protein "with" breakfast "on the side" ; +*/ + + +/* GRAMMAR +* EXPR -> TERM ( +*/ + + Parser make_parser(Tokens tokens) { return (Parser) { .tokens = tokens, diff --git a/test.bat b/test.bat new file mode 100644 index 0000000..29ec2d8 --- /dev/null +++ b/test.bat @@ -0,0 +1,7 @@ +@echo off + +set TESTS_DIR=./tests/ +set BUILD_CMD=../lang.exe {test_name}.{src_suffix} +set SRC_SUFFIX=.momo + +python .\test.py %*