mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
35 lines
970 B
YAML
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", "(",
|
|
""]
|