You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/TypePal/Collector/Collector.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ Scope management amounts to entering a new scope, leave the current scope and re
112
112
```
113
113
In order to check consistency, `leaveScope` has the inner scope that it is supposed to be leaving as argument.
114
114
115
-
Here is a simple example how the `let` expression in [the Fun language]((examples::fun)) handles subscopes:
115
+
Here is a simple example how the `let` expression in [the Fun language]((Examples)) handles subscopes:
116
116
117
117
```rascal
118
118
void collect(current: (Expression) `let <Id name> : <Type tp> = <Expression exp1> in <Expression exp2> end`, Collector c) {
@@ -248,7 +248,7 @@ TypePal is based on nested scopes and path between scopes. The former represent
248
248
249
249
`addPathToDef` is typically used to create an _import_ or _extend_ path between program parts. `occ` is an occurence of a name that should be defined elsewhere in one of the given roles. The effect is to add a `pathRole` path between the current scope and the definition.
250
250
251
-
Here is an example taken from [the language ModFun]((examples::modfun)):
251
+
Here is an example taken from [the language ModFun]((Examples)):
@@ -266,7 +266,7 @@ Similar to `addPathToDef` for the occurrence of a qualified names rather than a
266
266
```
267
267
`occ` is a parse tree with has a certain type. The effect is to add a `pathRole` path between the current scope and the definition of that type.
268
268
269
-
A prime example is type checking of [Pascal]((examples::pascal))'s `with` statement which _opens_ the definition of a record type and makes all defined fields available in the body of the `with` statement. Here we create a `withPath` between the scope of the with statement and all definitions of the record types of the given record variables:
269
+
A prime example is type checking of [Pascal]((Examples))'s `with` statement which _opens_ the definition of a record type and makes all defined fields available in the body of the `with` statement. Here we create a `withPath` between the scope of the with statement and all definitions of the record types of the given record variables:
@@ -323,7 +323,7 @@ There are three functions to describe the occurrence of a name in a parse tree a
323
323
```
324
324
The parse tree `occ` is a use to be resolved in the current scope in one of the given roles `idRoles`. The use of a variable in an expression is typically modelled with this use function.
325
325
326
-
Here is an example from [the Calc language]((examples::calc)):
326
+
Here is an example from [the Calc language]((Examples)):
0 commit comments