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
686c0e88
Verified
Commit
686c0e88
authored
Jun 03, 2018
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation for the uniqueness annotation * (
#180
)
parent
d24ca8e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
backend/Builtin/Syntax.icl
backend/Builtin/Syntax.icl
+13
-0
backend/Cloogle
backend/Cloogle
+1
-1
No files found.
backend/Builtin/Syntax.icl
View file @
686c0e88
...
...
@@ -45,6 +45,7 @@ builtin_syntax =
,
bs_strict
,
bs_synonym
,
bs_synonym_abstract
,
bs_unique
,
bs_update_array
,
bs_update_record
,
bs_where_class
...
...
@@ -490,6 +491,18 @@ bs_synonym_abstract =
,
syntax_examples
=
[
EX
":: Stack a (:== [a])"
]
}
bs_unique
=
{
syntax_title
=
"uniqueness annotation"
,
syntax_patterns
=
[
"
\\
*"
]
,
syntax_code
=
[
"*..."
]
,
syntax_description
=
"Annotates a type to be unique."
,
syntax_doc_locations
=
[
CLR
11
"9.1"
"_Toc311798093"
]
,
syntax_examples
=
map
EX
[
"Start :: *World -> *World"
,
"copyArray :: *(a e) -> *(*a e, *a e) | Array a e"
]
}
bs_update_array
=
{
syntax_title
=
"array update"
,
syntax_patterns
=
[
"&"
,
"{*&*[
\\
e]*=*}"
]
...
...
Cloogle
@
c3c019b3
Compare
c78656fb
...
c3c019b3
Subproject commit c
78656fbf34ffba15bd963912a844a937ebacc0b
Subproject commit c
3c019b321b7f75e733216f1b4226e3cbd5f085f
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