mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-15 08:15:07 +00:00
17 lines
566 B
Rust
17 lines
566 B
Rust
// These keywords are valid in expressions
|
|
pub const IF: &str = "if";
|
|
pub const THEN: &str = "then";
|
|
pub const ELSE: &str = "else";
|
|
pub const WHEN: &str = "when";
|
|
pub const AS: &str = "as";
|
|
pub const IS: &str = "is";
|
|
pub const DBG: &str = "dbg";
|
|
pub const EXPECT: &str = "expect";
|
|
pub const EXPECT_FX: &str = "expect-fx";
|
|
pub const CRASH: &str = "crash";
|
|
|
|
// These keywords are valid in types
|
|
pub const IMPLEMENTS: &str = "implements";
|
|
pub const WHERE: &str = "where";
|
|
|
|
pub const KEYWORDS: [&str; 10] = [IF, THEN, ELSE, WHEN, AS, IS, DBG, EXPECT, EXPECT_FX, CRASH];
|