Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Tom Niget
typon
Commits
489d0d22
Commit
489d0d22
authored
Jul 08, 2023
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename stdlib files to prevent naming conflict
parent
7cdc9572
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
6 additions
and
4 deletions
+6
-4
trans/stdlib/hashlib_.py
trans/stdlib/hashlib_.py
+0
-0
trans/stdlib/io_.py
trans/stdlib/io_.py
+0
-0
trans/stdlib/json_.py
trans/stdlib/json_.py
+0
-0
trans/stdlib/os_.py
trans/stdlib/os_.py
+0
-0
trans/stdlib/socket_.py
trans/stdlib/socket_.py
+0
-0
trans/stdlib/stat_.py
trans/stdlib/stat_.py
+0
-0
trans/stdlib/sys_.py
trans/stdlib/sys_.py
+4
-4
trans/transpiler/phases/typing/__init__.py
trans/transpiler/phases/typing/__init__.py
+2
-0
No files found.
trans/stdlib/hashlib.py
→
trans/stdlib/hashlib
_
.py
View file @
489d0d22
File moved
trans/stdlib/io.py
→
trans/stdlib/io
_
.py
View file @
489d0d22
File moved
trans/stdlib/json.py
→
trans/stdlib/json
_
.py
View file @
489d0d22
File moved
trans/stdlib/os.py
→
trans/stdlib/os
_
.py
View file @
489d0d22
File moved
trans/stdlib/socket.py
→
trans/stdlib/socket
_
.py
View file @
489d0d22
File moved
trans/stdlib/stat.py
→
trans/stdlib/stat
_
.py
View file @
489d0d22
File moved
trans/stdlib/sys.py
→
trans/stdlib/sys
_
.py
View file @
489d0d22
stdout
:
CppType
[
"auto&"
]
argv
:
list
[
str
]
def
exit
(
code
:
int
)
->
None
:
stdout
:
CppType
[
"auto&"
]
argv
:
list
[
str
]
def
exit
(
code
:
int
)
->
None
:
...
\ No newline at end of file
trans/transpiler/phases/typing/__init__.py
View file @
489d0d22
...
...
@@ -57,6 +57,8 @@ def discover_module(path: Path, scope):
elif
child
.
suffix
==
".py"
:
mod_scope
=
PRELUDE
.
child
(
ScopeKind
.
GLOBAL
)
StdlibVisitor
(
mod_scope
).
visit
(
ast
.
parse
(
child
.
read_text
()))
if
child
.
stem
[
-
1
]
==
"_"
:
child
=
child
.
with_name
(
child
.
stem
[:
-
1
])
scope
.
vars
[
child
.
stem
]
=
make_mod_decl
(
child
,
mod_scope
)
print
(
f"Visited
{
child
}
"
)
...
...
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