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

odin-lang/CEL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Configuration Expression Language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published