Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
clean-compiler-and-rts
compiler
Commits
3ed1243f
Commit
3ed1243f
authored
Jan 13, 2006
by
John van Groningen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove some unused code
parent
5ca35747
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
frontend/parse.icl
frontend/parse.icl
+1
-15
No files found.
frontend/parse.icl
View file @
3ed1243f
...
...
@@ -598,7 +598,7 @@ where
#
(
type_cons
,
pState
)
=
get_type_cons
type
pState
with
get_type_cons
(
TA
type_symb
[])
pState
=
(
TypeConsSymb
type_symb
,
pState
)
=
(
TypeConsSymb
type_symb
,
pState
)
get_type_cons
(
TA
type_symb
_)
pState
#
pState
=
parseError
"generic type, no constructor arguments allowed"
No
" |}"
pState
=
(
abort
"no TypeCons"
,
pState
)
...
...
@@ -707,20 +707,6 @@ where
foreign_export_error
s
pState
=
(
True
,
PD_Erroneous
,
tokenBack
(
parseError
"foreign export"
No
s
pState
))
/*
isEqualToken :: !Token -> Bool
isEqualToken EqualToken = True
isEqualToken _ = False
*/
/*
isRhsStartToken :: !ParseContext !Token -> Bool
isRhsStartToken parseContext EqualToken = True
isRhsStartToken parseContext ColonDefinesToken = isGlobalOrClassOrInstanceDefsContext parseContext
isRhsStartToken parseContext DefinesColonToken = True
isRhsStartToken parseContext DoubleArrowToken = True // PK
isRhsStartToken parseContext _ = False
*/
optionalSpecials
::
!
ParseState
->
(!
Specials
,
!
ParseState
)
optionalSpecials
pState
#
(
token
,
pState
)
=
nextToken
TypeContext
pState
...
...
Write
Preview
Markdown
is supported
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