Skip to content

Commit

Permalink
Adding 'async' keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisosaurus committed Oct 26, 2018
1 parent c4b7885 commit 051e48a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/s1/ddc-core/DDC/Core/Codec/Text/Lexer/Token/Keyword.hs
Expand Up @@ -38,6 +38,7 @@ data Keyword
| EForget
| EBox
| ERun
| EAsync

-- sugar keywords.
| EDo
Expand Down Expand Up @@ -83,6 +84,7 @@ sayKeyword kw
EWeakEff -> "weakeff"
EWith -> "with"
EUsing -> "using"
EAsync -> "async"

-- sugar keywords
EDo -> "do"
Expand Down Expand Up @@ -132,6 +134,7 @@ acceptKeyword str
"weakeff" -> Just EWeakEff
"with" -> Just EWith
"using" -> Just EUsing
"async" -> Just EAsync

-- sugar keywords
"do" -> Just EDo
Expand Down

0 comments on commit 051e48a

Please sign in to comment.