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
148fdd21
Commit
148fdd21
authored
Nov 21, 2001
by
John van Groningen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new explicit import syntax
parent
e0471228
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
72 additions
and
11 deletions
+72
-11
backend/backendconvert.dcl
backend/backendconvert.dcl
+5
-0
backend/backendsupport.dcl
backend/backendsupport.dcl
+5
-4
backend/backendsupport.icl
backend/backendsupport.icl
+6
-1
frontend/compilerSwitches.dcl
frontend/compilerSwitches.dcl
+1
-1
frontend/compilerSwitches.icl
frontend/compilerSwitches.icl
+1
-1
frontend/containers.dcl
frontend/containers.dcl
+6
-0
frontend/convertDynamics.icl
frontend/convertDynamics.icl
+1
-1
frontend/frontend.dcl
frontend/frontend.dcl
+6
-0
frontend/general.dcl
frontend/general.dcl
+5
-0
frontend/generics.dcl
frontend/generics.dcl
+5
-0
frontend/generics.icl
frontend/generics.icl
+6
-1
frontend/typesupport.dcl
frontend/typesupport.dcl
+5
-0
frontend/utilities.dcl
frontend/utilities.dcl
+6
-0
main/Windows/CoclSystemDependent.dcl
main/Windows/CoclSystemDependent.dcl
+4
-1
main/compile.dcl
main/compile.dcl
+5
-1
main/filesystem.dcl
main/filesystem.dcl
+5
-0
No files found.
backend/backendconvert.dcl
View file @
148fdd21
...
...
@@ -3,7 +3,12 @@
*/
definition
module
backendconvert
/*2.0
from backend import ::BackEnd
0.2*/
//1.3
from
backend
import
BackEnd
//3.1
import
frontend
backEndConvertModules
::
PredefinedSymbols
FrontEndSyntaxTree
!
Int
*
VarHeap
*
AttrVarHeap
*
BackEnd
->
(!*
VarHeap
,
*
AttrVarHeap
,
!*
BackEnd
)
backend/backendsupport.dcl
View file @
148fdd21
...
...
@@ -3,14 +3,15 @@
*/
definition
module
backendsupport
/*2.0
from StdArray import class Array(size,usize)
from StdInt import class +,class ==
0.2*/
//1.3
from
StdArray
import
size
,
size_u
from
StdInt
import
+,
==
//3.1
/*2.0
from StdArray import size, usize
0.2*/
from
StdFunc
import
`
bind`
from
StdInt
import
+,
==
import
utilities
...
...
backend/backendsupport.icl
View file @
148fdd21
...
...
@@ -4,8 +4,13 @@
implementation
module
backendsupport
import
StdArray
from
StdFunc
import
`
bind`
/*2.0
from StdInt import class + (..),class == (..)
0.2*/
//1.3
from
StdInt
import
+,
==
//3.1
from
StdFunc
import
`
bind`
identity
:==
\
x
->
x
...
...
frontend/compilerSwitches.dcl
View file @
148fdd21
...
...
@@ -2,7 +2,7 @@ definition module compilerSwitches
PA_BUG
on
off
:==
off
switch_import_syntax
one_point_three
two_point_zero
:==
one_point_three
switch_import_syntax
one_point_three
two_point_zero
:==
two_point_zero
/* when finally removing this switch also remove the argument of STE_Instance and ID_OldSyntax */
SwitchPreprocessor
preprocessor
no_preprocessor
:==
preprocessor
...
...
frontend/compilerSwitches.icl
View file @
148fdd21
...
...
@@ -2,7 +2,7 @@ implementation module compilerSwitches
PA_BUG
on
off
:==
off
switch_import_syntax
one_point_three
two_point_zero
:==
one_point_three
switch_import_syntax
one_point_three
two_point_zero
:==
two_point_zero
/* when finally removing this switch also remove the argument of STE_Instance and ID_OldSyntax */
SwitchPreprocessor
preprocessor
no_preprocessor
:==
preprocessor
...
...
frontend/containers.dcl
View file @
148fdd21
definition
module
containers
/*2.0
from syntax import ::Optional
from StdOverloaded import class toString
0.2*/
//1.3
from
syntax
import
Optional
from
StdOverloaded
import
toString
//3.1
::
NumberSet
=
Numbers
!
Int
!
NumberSet
|
EndNumbers
...
...
frontend/convertDynamics.icl
View file @
148fdd21
...
...
@@ -15,7 +15,7 @@ import type_io;
//import RWSDebug;
/*2.0
from type_io_common import
toString
;
from type_io_common import
class toString (..),instance toString GlobalTCType
;
0.2*/
::
*
ConversionInfo
=
...
...
frontend/frontend.dcl
View file @
148fdd21
...
...
@@ -3,8 +3,14 @@
*/
definition
module
frontend
/*2.0
from scanner import ::SearchPaths
from general import ::Optional, Yes, No
0.2*/
//1.3
from
scanner
import
SearchPaths
from
general
import
Optional
,
Yes
,
No
//3.1
import
checksupport
,
transform
,
overloading
::
FrontEndOptions
...
...
frontend/general.dcl
View file @
148fdd21
definition
module
general
/*2.0
from StdEnv import instance <<< Int,class <<< (..),instance + Int,class + (..),instance ~ Int,class ~ (..)
0.2*/
//1.3
from
StdEnv
import
<<<,
+,
~
//3.1
instance
~
Bool
...
...
frontend/generics.dcl
View file @
148fdd21
definition
module
generics
import
checksupport
/*2.0
from transform import ::Group
0.2*/
//1.3
from
transform
import
Group
//3.1
convertGenerics
::
!{!
Group
}
!
Int
!{#
CommonDefs
}
!*{#
FunDef
}
!*
TypeDefInfos
!*
Heaps
!*
HashTable
!*
PredefinedSymbols
!
u
:{#
DclModule
}
/*!(Optional {#Index})*/
!*
ErrorAdmin
->
(!{!
Group
},
!{#
CommonDefs
},
!*{#
FunDef
},
!
IndexRange
,
!*
TypeDefInfos
,
!*
Heaps
,
!*
HashTable
,
!*
PredefinedSymbols
,
!
u
:{#
DclModule
},
/*!(Optional {#Index}),*/
!*
ErrorAdmin
)
...
...
frontend/generics.icl
View file @
148fdd21
...
...
@@ -6,8 +6,13 @@ import hashtable
import
checksupport
import
checktypes
import
check
from
transform
import
Group
import
analtypes
/*2.0
from transform import ::Group
0.2*/
//1.3
from
transform
import
Group
//3.1
// whether to generate CONS
// (needed for function that use CONS, like toString)
...
...
frontend/typesupport.dcl
View file @
148fdd21
...
...
@@ -2,7 +2,12 @@ definition module typesupport
import
checksupport
,
StdCompare
/*2.0
from unitype import ::Coercions, ::CoercionTree, ::AttributePartition, CT_Empty
0.2*/
//1.3
from
unitype
import
Coercions
,
CoercionTree
,
AttributePartition
,
CT_Empty
//3.1
errorHeading
::
!
String
!*
ErrorAdmin
->
*
ErrorAdmin
...
...
frontend/utilities.dcl
View file @
148fdd21
definition
module
utilities
// compile with "reuse unique nodes"
/*2.0
from StdEnv import class Eq, not, class Ord, class IncDec
0.2*/
//1.3
from
StdEnv
import
Eq
,
not
,
Ord
,
IncDec
//3.1
import
StdMisc
,
general
import
_aconcat
...
...
main/Windows/CoclSystemDependent.dcl
View file @
148fdd21
...
...
@@ -3,8 +3,11 @@ definition module CoclSystemDependent
//1.3
from
StdString
import
String
//3.1
from
StdFile
import
Files
//3.1
/*2.0
from StdFile import ::Files
0.2*/
// RWS split
// from deltaIOSystem import DeviceSystem
...
...
main/compile.dcl
View file @
148fdd21
...
...
@@ -3,7 +3,12 @@
*/
definition
module
compile
/*2.0
from StdFile import ::Files
0.2*/
//1.3
from
StdFile
import
Files
//3.1
import
checksupport
compile
::
![{#
Char
}]
!*
DclCache
!*
Files
->
(!
Bool
,!*
DclCache
,!*
Files
)
...
...
@@ -17,4 +22,3 @@ compile :: ![{#Char}] !*DclCache !*Files -> (!Bool,!*DclCache,!*Files)
};
empty_cache
::
*
SymbolTable
->
*
DclCache
main/filesystem.dcl
View file @
148fdd21
...
...
@@ -7,7 +7,12 @@
*/
definition
module
filesystem
/*2.0
from StdFile import class FileSystem,::Files
0.2*/
//1.3
from
StdFile
import
FileSystem
,
Files
//3.1
// return last modified time (local time) as "yyyymmddhhmmss" or "" on error
fmodificationtime
::
{#
Char
}
!*
env
->
(!{#
Char
},
!*
env
)
|
FileSystem
env
...
...
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