mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Define and use IMPLEMENTS const in roc_parse::keyword
This commit is contained in:
parent
9640fcb6d4
commit
e514d0cb83
12 changed files with 37 additions and 26 deletions
|
@ -1,3 +1,4 @@
|
|||
// These keywords are valid in expressions
|
||||
pub const IF: &str = "if";
|
||||
pub const THEN: &str = "then";
|
||||
pub const ELSE: &str = "else";
|
||||
|
@ -9,4 +10,8 @@ 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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue