Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
cloogle.org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cloogle
cloogle.org
Commits
0d7d7ce8
Verified
Commit
0d7d7ce8
authored
Jun 06, 2018
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also fix examples in uniqueness documentation; add <= pattern
parent
8597aad0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
backend/Builtin/Syntax.icl
backend/Builtin/Syntax.icl
+5
-5
No files found.
backend/Builtin/Syntax.icl
View file @
0d7d7ce8
...
...
@@ -515,7 +515,7 @@ bs_synonym_abstract =
bs_unique
=
{
syntax_title
=
"uniqueness annotation"
,
syntax_patterns
=
[
"
\\
*"
,
"."
,
"%:"
,
"[*<=*]"
,
","
]
,
syntax_patterns
=
[
"
\\
*"
,
"."
,
"%:"
,
"[*<=*]"
,
","
,
"<="
]
,
syntax_code
=
[
"*..."
,
". ..."
...
...
@@ -533,10 +533,10 @@ bs_unique =
]
,
syntax_doc_locations
=
[
CLR
11
"9.1"
"_Toc311798093"
]
,
syntax_examples
=
map
EX
[
"Start :: *World -> *World
// World is unique"
,
"copyArray :: *(a e) -> *(*a e, *a e) | Array a e // Add parenthes
i
s when needed"
,
"f :: .a -> .a
// f works on unique and non-unique values"
,
"f :: v:a u:b -> u:b
|
[v<=u] // f works when a is less unique than b"
[
"Start :: *World -> *World // World is unique"
,
"copyArray :: *(a e) -> *(*a e, *a e) | Array a e // Add parenthes
e
s when needed"
,
"f :: .a -> .a // f works on unique and non-unique values"
,
"f :: v:a u:b -> u:b
,
[v<=u] // f works when a is less unique than b"
]
}
...
...
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