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
cd62991f
Commit
cd62991f
authored
Mar 27, 2024
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix get for Future
parent
220d7ccb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
typon/runtime
typon/runtime
+1
-1
typon/trans/test_runner.py
typon/trans/test_runner.py
+1
-1
typon/trans/tests/linked_list.py
typon/trans/tests/linked_list.py
+3
-0
typon/trans/transpiler/phases/emit_cpp/expr.py
typon/trans/transpiler/phases/emit_cpp/expr.py
+8
-2
No files found.
runtime
@
76287636
Subproject commit
9c9a3751d7fd768a56f80e371f99d51af6faa53c
Subproject commit
76287636438cf0a82701102ccb8014c66ea88506
typon/trans/test_runner.py
View file @
cd62991f
...
@@ -130,7 +130,7 @@ def run_tests():
...
@@ -130,7 +130,7 @@ def run_tests():
with
pool
as
executor
:
with
pool
as
executor
:
futures
=
{
path
:
executor
.
submit
(
runner
,
path
)
for
path
in
tests
}
futures
=
{
path
:
executor
.
submit
(
runner
,
path
)
for
path
in
tests
}
try
:
try
:
for
future
in
concurrent
.
futures
.
as_completed
(
futures
.
values
(),
12
0
):
for
future
in
concurrent
.
futures
.
as_completed
(
futures
.
values
(),
24
0
):
path
,
status
,
duration
=
future
.
result
()
path
,
status
,
duration
=
future
.
result
()
print
(
f"[
{
status
.
ascii
()
}
] (
{
duration
.
total_seconds
():
2.2
f
}
s)
{
path
.
name
}
"
)
print
(
f"[
{
status
.
ascii
()
}
] (
{
duration
.
total_seconds
():
2.2
f
}
s)
{
path
.
name
}
"
)
except
TimeoutError
:
except
TimeoutError
:
...
...
typon/trans/tests/linked_list.py
0 → 100644
View file @
cd62991f
# coding: utf-8
# TODO
\ No newline at end of file
typon/trans/transpiler/phases/emit_cpp/expr.py
View file @
cd62991f
...
@@ -173,10 +173,16 @@ class ExpressionVisitor(NodeVisitor):
...
@@ -173,10 +173,16 @@ class ExpressionVisitor(NodeVisitor):
else
:
else
:
yield
"co_await"
yield
"co_await"
else
:
else
:
if
is_get
and
node
.
func
.
value
.
type
.
inherits
(
TY_F
UTURE
,
TY_F
ORKED
):
if
is_get
and
node
.
func
.
value
.
type
.
inherits
(
TY_FORKED
):
yield
from
self
.
visit
(
node
.
func
.
value
)
yield
from
self
.
visit
(
node
.
func
.
value
)
return
return
yield
"call_sync"
elif
is_get
and
node
.
func
.
value
.
type
.
inherits
(
TY_FUTURE
):
yield
"(typename std::remove_cvref_t<decltype(*"
yield
from
self
.
visit
(
node
.
func
.
value
)
yield
".operator->())>::promise_type::value_type{})"
return
else
:
yield
"call_sync"
...
...
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