Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Latest commit

 

History

History
36 lines (26 loc) · 567 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 567 Bytes

CEL

Configuration Expression Language (CEL) is a language meant for configuration purposes.

x = 123;
y = 321.456;
z = x * (y - 1) / 2;
w = "foo" + "bar";

# This is a comment

asd = "Semicolons are optional"

a = {id = {b = 123, c = false}} # Dict
b = a.id.b

f = [1, 4, 9] # Array
g = f[2]

h = x < y and w == "foobar"
i = h ? 123 : "google"

j = nil

"127.0.0.1" = "value" # Keys can be strings

"foo" = {
	bar = {
		"baz" = 123 # optional commas if newline is present
		"zab" = 456
		"abz" = "I'm a string,\tJos\u00e9."
	}
}

bar = @"foo"["bar"].baz