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
df6226ee
Commit
df6226ee
authored
Aug 27, 2002
by
Ronny Wichers Schreur
🏘
Browse files
Added FailExpr node
parent
f624ba81
Changes
3
Hide whitespace changes
Inline
Side-by-side
backend/backendconvert.icl
View file @
df6226ee
...
...
@@ -1696,6 +1696,8 @@ convertRootExpr aliasDummyId (Case kees=:{case_expr, case_guards}) main_dcl_modu
->
abort
"backendconvert:defaultCase, case without id"
// otherwise
=
DefaultCaseNone
convertRootExpr
_
(
FailExpr
fail_ident
)
_
=
beNormalNode
(
beLiteralSymbol
BEFailSymb
fail_ident
.
id_name
)
beNoArgs
convertRootExpr
_
expr
main_dcl_module_n
=
convertExpr
expr
main_dcl_module_n
...
...
frontend/syntax.dcl
View file @
df6226ee
...
...
@@ -1235,6 +1235,7 @@ cIsNotStrict :== False
|
TypeCodeExpression
!
TypeCodeExpression
|
EE
|
NoBind
ExprInfoPtr
/* auxiliary, to store fields that are not specified in a record expression */
|
FailExpr
!
Ident
// only allowed on (case) root positions
::
CodeBinding
variable
:==
Env
String
variable
...
...
frontend/syntax.icl
View file @
df6226ee
...
...
@@ -1226,6 +1226,7 @@ cIsNotStrict :== False
|
TypeCodeExpression
!
TypeCodeExpression
|
EE
|
NoBind
ExprInfoPtr
/* auxiliary, to store fields that are not specified in a record expression */
|
FailExpr
!
Ident
// only allowed on (case) root positions
::
CodeBinding
variable
:==
Env
String
variable
...
...
@@ -1746,6 +1747,7 @@ where
(<<<)
file
(
FreeVar
{
fv_name
})
=
file
<<<
fv_name
(<<<)
file
(
ClassVariable
info_ptr
)
=
file
<<<
"ClassVariable "
<<<
info_ptr
(<<<)
file
(
FailExpr
_)
=
file
<<<
"** FAIL **"
(<<<)
file
expr
=
abort
(
"<<< (Expression) [line 1290]"
)
//<<- expr)
instance
<<<
LetBind
...
...
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