Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tom Harke
pystencils
Commits
0b8e7e88
Commit
0b8e7e88
authored
Nov 28, 2019
by
Stephan Seitz
Browse files
Update docstring of generate_c
parent
e1b452f7
Changes
1
Show whitespace changes
Inline
Side-by-side
pystencils/backends/cbackend.py
View file @
0b8e7e88
...
@@ -32,9 +32,9 @@ def generate_c(ast_node: Node,
...
@@ -32,9 +32,9 @@ def generate_c(ast_node: Node,
with_globals
=
True
)
->
str
:
with_globals
=
True
)
->
str
:
"""Prints an abstract syntax tree node as C or CUDA code.
"""Prints an abstract syntax tree node as C or CUDA code.
This function does not need to distinguish between C, C++ or CUDA code, it just prints 'C-like'
code as encoded
This function does not need to distinguish
for most AST nodes
between C, C++ or CUDA code, it just prints 'C-like'
in the abstract syntax tree (AST). The AST is built differently for C or CUDA by calling different
create_kernel
code as encoded
in the abstract syntax tree (AST). The AST is built differently for C or CUDA by calling different
functions.
create_kernel
functions.
Args:
Args:
ast_node:
ast_node:
...
...
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