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
1 year ago
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass proper module name to transpile()
parent
bdccf8df
Changes
2
Hide 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():
from
transpiler
import
transpile
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
)
output_name
=
args
.
output
or
path
.
with_suffix
(
'.cpp'
)
...
...
This diff is collapsed.
Click to expand it.
typon/trans/test_runner.py
View file @
28dc8d44
...
...
@@ -76,7 +76,7 @@ def run_test(path, quiet=True):
compile
=
"# nocompile"
not
in
code
extension
=
"# extension"
in
code
try
:
res
=
format_code
(
transpile
(
code
,
path
.
name
,
path
))
res
=
format_code
(
transpile
(
code
,
path
.
stem
,
path
))
except
:
if
not
quiet
:
raise
...
...
This diff is collapsed.
Click to expand it.
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