Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Allow _e as suffix for types in cmp. #116

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading