erg/compiler/erg_parser/tests/test1_basic_syntax.er
GreasySlug 0bb9ef6a85 Test: additional testing of fixed issues
Double quotation char is missing, so added it
Added a test to see if the added escaping characters work
2022-09-16 20:55:57 +09:00

20 lines
466 B
Python

# 基本的な構文をパーサーがパスできるかチェックする
# Check that a parser can pass the basic syntax
_a = 1_234 + 1113.* 3_000.2e-4 ** 0003 * .4
a, _, ...b = five_elem_tuple
f x, y =
x + y
if! True, do!:
print! "\"\\hello, world\\\""
10.times! do!:
if! x.y.z, do!:
print! ""
# illegal indent
# do_nothing!
Hello = S2c "hello"
aあ아 =
# コメント
"aaa"
x; x;; x;
10..twelve;