Skip to content

Commit

Permalink
fix: Allow _e as suffix for types in cmp.
Browse files Browse the repository at this point in the history
cmp uses this for enum type suffixes.
  • Loading branch information
iphydf committed Nov 7, 2024
1 parent f111959 commit bb7a411
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ haskell_library(
),
src_strip_prefix = "src",
tags = ["no-cross"],
version = "0.0.22",
version = "0.0.23",
visibility = ["//visibility:public"],
deps = [
":ast",
Expand Down
2 changes: 1 addition & 1 deletion cimple.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: cimple
version: 0.0.22
version: 0.0.23
synopsis: Simple C-like programming language
homepage: https://toktok.github.io/
license: GPL-3
Expand Down
2 changes: 1 addition & 1 deletion src/Language/Cimple/Lexer.x
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ tokens :-
<0,ppSC> [A-Z][A-Z0-9_]{1,2} { mkL IdSueType }
<0,ppSC> _*[A-Z][A-Z0-9_]* { mkL IdConst }
<0,ppSC> [A-Z][A-Za-z0-9_]*[a-z][A-Za-z0-9_]* { mkL IdSueType }
<0,ppSC> "cmp_"[a-z][a-z0-9_]*_[stu] { mkL IdSueType }
<0,ppSC> "cmp_"[a-z][a-z0-9_]*_[suet] { mkL IdSueType }
<0,ppSC> [a-z][a-z0-9_]*_t { mkL IdStdType }
<0,ppSC> [a-z][a-z0-9_]*_cb { mkL IdFuncType }
<0,ppSC> "cmp_"("reader"|"writer"|"skipper") { mkL IdFuncType }
Expand Down

0 comments on commit bb7a411

Please sign in to comment.