Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
36703597
Commit
36703597
authored
Aug 14, 2018
by
John van Groningen
Browse files
use mapSt instead of seqList (seqList will be removed from StdEnv)
parent
24199974
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/parse.icl
View file @
36703597
...
...
@@ -1596,7 +1596,7 @@ wantInstanceDeclaration parseContext pi_pos pState
// otherwise // ~ (isIclContext parseContext)
|
token
==
CommaToken
#
(
pi_types_and_contexts
,
pState
)
=
want_instance_types
pState
(
idents
,
pState
)
=
seqList
[
stringToIdent
class_name
(
IC_Instance
type
)
\\
(
type
,
context
)
<-
pi_types_and_contexts
]
pState
(
idents
,
pState
)
=
mapSt
(\
(
type
,_)
->
stringToIdent
class_name
(
IC_Instance
type
)
)
pi_types_and_contexts
pState
=
(
PD_Instances
[
{
pim_pi
=
{
pi_class
=
pi_class
,
pi_ident
=
ident
,
pi_types
=
type
,
pi_context
=
context
,
pi_specials
=
SP_None
,
pi_pos
=
pi_pos
},
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment