Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Cloogle
cloogle.org
Commits
1bd3179e
Verified
Commit
1bd3179e
authored
Jun 04, 2018
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add = and -> documentation for case expressions (
#180
)
parent
68d0b802
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
backend/Builtin/Syntax.icl
backend/Builtin/Syntax.icl
+5
-2
No files found.
backend/Builtin/Syntax.icl
View file @
1bd3179e
...
...
@@ -62,9 +62,12 @@ EXs s c = {example=c, cleanjs_start=Just s}
bs_case
=
{
syntax_title
=
"case expression"
,
syntax_patterns
=
[
"case"
,
"of"
,
"case of"
]
,
syntax_patterns
=
[
"case"
,
"of"
,
"case of"
,
"->"
,
"="
]
,
syntax_code
=
[
"case ... of ..."
]
,
syntax_description
=
"Pattern match on an expression and do something depending on the alternative of the matching pattern."
,
syntax_description
=
join
" "
[
"Pattern match on an expression and do something depending on the alternative of the matching pattern."
,
"Both `->` and `=` can be used to separate patterns and alternatives, however, they cannot be mixed."
]
,
syntax_doc_locations
=
[
CLR
5
"3.4.2"
"_Toc311798001"
]
,
syntax_examples
=
[
EXs
"macro"
"isJust m = case m of
\n\t
Just _ -> True
\n\t
_ -> False"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment