Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
dacb0807
Commit
dacb0807
authored
Jun 05, 2014
by
dbarbera
Browse files
Added boolean values generation
parent
8e741133
Changes
1
Hide whitespace changes
Inline
Side-by-side
LlvmGenerator.py
View file @
dacb0807
...
...
@@ -341,7 +341,10 @@ def _real(primary):
@
expression
.
register
(
ogAST
.
PrimBoolean
)
def
_boolean
(
primary
):
''' Generate code for a raw boolean value '''
raise
NotImplementedError
if
primary
.
value
[
0
].
lower
()
==
'true'
:
return
core
.
Constant
.
int
(
core
.
Type
.
int
(
1
),
1
)
else
:
return
core
.
Constant
.
int
(
core
.
Type
.
int
(
1
),
0
)
@
expression
.
register
(
ogAST
.
PrimEmptyString
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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