diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-01 01:38:18 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-01 01:38:18 +0200 |
| commit | 4b9bc660281b2740c310bd9439493064017c9814 (patch) | |
| tree | 609a44b34871c8582dffaf27cbb6636f1a869313 /src/syntax/token.rs | |
| parent | 38607b8bea1ede7a124c8fe384d7efca76f9f011 (diff) | |
Implement low-level char parser 🥜
Diffstat (limited to 'src/syntax/token.rs')
| -rw-r--r-- | src/syntax/token.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/syntax/token.rs b/src/syntax/token.rs index b7d4c4e2..4cb8501f 100644 --- a/src/syntax/token.rs +++ b/src/syntax/token.rs @@ -19,14 +19,15 @@ pub enum Token<'s> { LeftBracket, /// A right bracket ending a function invocation or body: `]`. RightBracket, + /// A left brace indicating the start of content: `{`. + LeftBrace, + /// A right brace indicating the end of content: `}`. + RightBrace, /// A left parenthesis in a function header: `(`. LeftParen, /// A right parenthesis in a function header: `)`. RightParen, - /// A left brace in a function header: `{`. - LeftBrace, - /// A right brace in a function header: `}`. - RightBrace, + /// A double forward chevron in a function header: `>>`. Chain, |
