Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CoPaR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Informatik 8
CoPaR
Commits
6c41f5ca
Commit
6c41f5ca
authored
6 years ago
by
Hans-Peter Deifel
Browse files
Options
Downloads
Patches
Plain Diff
howto: Change headline grammar
parent
9b516db7
No related branches found
No related tags found
No related merge requests found
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/HOWTO_IMPLEMENT_A_FUNCTOR.org
+5
-5
5 additions, 5 deletions
doc/HOWTO_IMPLEMENT_A_FUNCTOR.org
with
5 additions
and
5 deletions
doc/HOWTO_IMPLEMENT_A_FUNCTOR.org
+
5
−
5
View file @
6c41f5ca
...
...
@@ -8,7 +8,7 @@ for concise technical documentation. Some basic Haskell knowledge is assumed.
We're going to implement a simple version of the Powerset functor with functor
syntax ~P(X)~ and morphism syntax ~{a, b, ...}~.
* Creat
e
a Haskell module
* Creat
ing
a Haskell module
Create a new file called ~SimplePowerset.hs~ in the directory
~src/Copar/Functors/~ with the following content:
...
...
@@ -19,7 +19,7 @@ module Copar.Functors.SimplePowerset (simplePowerset) where
and add the new module to the other functor modules in `copar.cabal`.
* Creat
e
a datatype for the functor
* Creat
ing
a datatype for the functor
Let's create a new Haskell type for our functor:
...
...
@@ -68,7 +68,7 @@ stack exec -- copar help functors
should now include the new =SimplePowerset= functor.
* Implement the refinement Interface
* Implement
ing
the refinement Interface
The refinement interface is the heart of our functor. It determines how
partition refinement works for our type of transition system.
...
...
@@ -133,7 +133,7 @@ On the other hand, ~update~ is a little more complicated. It takes as arguments
the list of labels of edges into a subblock, the ~Weight~ into the corresponding
super block, and returns a tuple.
* Implement a functor expression parser
* Implement
ing
a functor expression parser
Each functor in CoPaR has a functor expression parser, which are combined to
parse the first line of the input file to determine the functor for the
...
...
@@ -161,7 +161,7 @@ simplePowerset = FunctorDescription
}
#+END_SRC
* Implement a morphism parser
* Implement
ing
a morphism parser
The next thing the functor needs is a parser for the morphism syntax.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment