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
14eff4f2
Commit
14eff4f2
authored
Aug 20, 2016
by
Maxime Perrotin
Browse files
Remove old NULL token
parent
02e9ded4
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/ogParser.py
View file @
14eff4f2
...
...
@@ -1711,10 +1711,10 @@ def primary(root, context):
prim
=
ogAST
.
PrimBoolean
()
prim
.
value
=
[
root
.
text
.
lower
()]
prim
.
exprType
=
type
(
'PrBool'
,
(
object
,),
{
'kind'
:
'BooleanType'
})
elif
root
.
type
==
lexer
.
NULL
:
prim
=
ogAST
.
PrimNull
()
prim
.
value
=
[
root
.
text
.
lower
()]
prim
.
exprType
=
type
(
'PrNull'
,
(
object
,),
{
'kind'
:
'NullType'
})
#
elif root.type == lexer.NULL:
#
prim = ogAST.PrimNull()
#
prim.value = [root.text.lower()]
#
prim.exprType = type('PrNull', (object,), {'kind': 'NullType'})
elif
root
.
type
==
lexer
.
FLOAT
:
prim
=
ogAST
.
PrimReal
()
prim
.
value
=
[
root
.
text
]
...
...
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