Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon-compiler
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
typon
typon-compiler
Commits
28dc8d44
Commit
28dc8d44
authored
Nov 02, 2023
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass proper module name to transpile()
parent
bdccf8df
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
typon/trans/main.py
typon/trans/main.py
+1
-1
typon/trans/test_runner.py
typon/trans/test_runner.py
+1
-1
No files found.
typon/trans/main.py
View file @
28dc8d44
...
@@ -69,7 +69,7 @@ def main():
...
@@ -69,7 +69,7 @@ def main():
from
transpiler
import
transpile
from
transpiler
import
transpile
from
transpiler.format
import
format_code
from
transpiler.format
import
format_code
raw_cpp
=
transpile
(
code
,
path
.
name
,
path
)
raw_cpp
=
transpile
(
code
,
path
.
stem
,
path
)
formatted
=
format_code
(
raw_cpp
)
formatted
=
format_code
(
raw_cpp
)
output_name
=
args
.
output
or
path
.
with_suffix
(
'.cpp'
)
output_name
=
args
.
output
or
path
.
with_suffix
(
'.cpp'
)
...
...
typon/trans/test_runner.py
View file @
28dc8d44
...
@@ -76,7 +76,7 @@ def run_test(path, quiet=True):
...
@@ -76,7 +76,7 @@ def run_test(path, quiet=True):
compile
=
"# nocompile"
not
in
code
compile
=
"# nocompile"
not
in
code
extension
=
"# extension"
in
code
extension
=
"# extension"
in
code
try
:
try
:
res
=
format_code
(
transpile
(
code
,
path
.
name
,
path
))
res
=
format_code
(
transpile
(
code
,
path
.
stem
,
path
))
except
:
except
:
if
not
quiet
:
if
not
quiet
:
raise
raise
...
...
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