Files
regorus/tests/lexer/cases/symbol.yaml
Ming-Wei Shih c0972ad2ba Update license to MIT
Signed-off-by: Ming-Wei Shih <mishih@microsoft.com>
2023-02-09 19:40:35 +00:00

24 lines
642 B
YAML

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
# Two single char symbols in a row must be parsed correctly.
- note: single-char-two-in-a-row
rego: |
++--**//&&||{{}}(())[[]];;,,..::<<>>
tokens: [
"+", "+", "-", "-", "*", "*", "/", "/", "&", "&",
"|", "|", "{", "{", "}", "}", "(", "(", ")", ")",
"[", "[", "]", "]", ";", ";", ",", ",", ".", ".",
":", ":", "<", "<", ">", ">",
""]
# Multi char operators must be correctly parsed.
- note: multi-char-in-a-row
rego: ">====<== ==="
tokens: [
">=", "==", "=", "<=", "=", "==", "=",
""]