Files
regorus/tests/lexer/cases/all.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

35 lines
970 B
YAML

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- rego: |
+ - * # This is a comment
/
[ ] {} ( ) & |
, .
< <= = == > >=
tIS+t[#
#[ ] {} ( ) & |
#, .
#< <= = == > >=*/
a]
1 0 1230 0.1 0.123 123.0 123.12345 1.023e308
1 . #
"Hello" "Hello\tWorld" ""
"abc"
`This is
a raw string`
. 5 set ( ) set( ) set( 5 )
# The following will be lexed as 'set' '(' since there is no matching ')'.
set(
note: all-tokens
tokens:
[ "+", "-", "*", "/", "[", "]", "{", "}", "(", ")", "&", "|", ",",
".", "<", "<=", "=", "==", ">", ">=",
"tIS", "+", "t", "[", "a", "]", "1", "0", "1230", "0.1",
"0.123", "123.0", "123.12345", "1.023e308", "1", ".",
"Hello", "Hello\\tWorld", "", "abc", "This is\na raw string",
".", "5", "set", "(", ")", "set(", ")", "set", "(", "5", ")",
"set", "(",
""]