Skip to content
GitLab
Menu
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
790316ef
Commit
790316ef
authored
Dec 19, 2001
by
Ronny Wichers Schreur
🏘
Browse files
bug fix for previous bug fix
parent
e84bcafd
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/parse.icl
View file @
790316ef
...
...
@@ -551,16 +551,16 @@ where
combine_args
[
arg
]
=
arg
combine_args
args
=
PE_List
args
want_rhs_of_def
parseContext
(
Yes
(
name
,
False
),
[])
t
oken
pos
pState
#
code_allowed
=
t
oken
==
EqualToken
|
isIclContext
parseContext
&&
isLocalContext
parseContext
&&
(
t
oken
==
EqualToken
||
t
oken
==
DefinesColonToken
)
&&
want_rhs_of_def
parseContext
(
Yes
(
name
,
False
),
[])
definingT
oken
pos
pState
#
code_allowed
=
definingT
oken
==
EqualToken
|
isIclContext
parseContext
&&
isLocalContext
parseContext
&&
(
definingT
oken
==
EqualToken
||
definingT
oken
==
DefinesColonToken
)
&&
/* PK isLowerCaseName name.id_name && */
not
(
isClassOrInstanceDefsContext
parseContext
)
#
(
token
,
pState
)
=
nextToken
FunctionContext
pState
|
code_allowed
&&
token
==
CodeToken
#
(
rhs
,
pState
)
=
wantCodeRhs
pState
=
(
PD_Function
pos
name
False
[]
rhs
(
FK_Function
cNameNotLocationDependent
),
pState
)
#
pState
=
tokenBack
pState
#
(
rhs
,
_,
pState
)
=
wantRhs
False
(
RhsDefiningSymbolExact
t
oken
)
(
tokenBack
pState
)
#
(
rhs
,
_,
pState
)
=
wantRhs
False
(
RhsDefiningSymbolExact
definingT
oken
)
(
tokenBack
pState
)
|
token
==
EqualToken
=
(
PD_Function
pos
name
False
[]
rhs
FK_NodeDefOrFunction
,
pState
)
// otherwise // token == DefinesColonToken
...
...
Write
Preview
Supports
Markdown
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