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
abfe2a93
Commit
abfe2a93
authored
Oct 16, 2014
by
Maxime Perrotin
Browse files
Fixed support of DECISION ANY
parent
9c203d77
Changes
2
Hide whitespace changes
Inline
Side-by-side
ogParser.py
View file @
abfe2a93
...
...
@@ -3072,7 +3072,13 @@ def decision(root, parent, context):
dec
.
line
=
child
.
getLine
()
dec
.
charPositionInLine
=
child
.
getCharPositionInLine
()
elif
child
.
type
==
lexer
.
ANY
:
warnings
.
append
([
'Use of "ANY" introduces non-determinism '
,
[
dec
.
pos_x
,
dec
.
pos_y
],
[]])
dec
.
kind
=
'any'
dec
.
inputString
=
get_input_string
(
child
)
dec
.
question
=
ogAST
.
PrimStringLiteral
()
dec
.
question
.
value
=
'ANY'
dec
.
question
.
exprType
=
RAWSTRING
elif
child
.
type
==
lexer
.
COMMENT
:
dec
.
comment
,
_
,
_
=
end
(
child
)
elif
child
.
type
==
lexer
.
HYPERLINK
:
...
...
sdlSymbols.py
View file @
abfe2a93
...
...
@@ -48,7 +48,7 @@ SDL_BLACKBOLD = ['\\b{word}\\b'.format(word=word) for word in (
'EXPONENT'
,
'TRUE'
,
'FALSE'
,
'MOD'
,
'FI'
,
'WRITE'
,
'WRITELN'
,
'LENGTH'
,
'PRESENT'
,
'FPAR'
,
'TODO'
,
'FIXME'
,
'XXX'
,
'CHECKME'
,
'PROCEDURE'
,
'EXTERNAL'
,
'IN'
,
'OUT'
,
'TIMER'
,
'SET_TIMER'
,
'RESET_TIMER'
,
'VIA'
,
'ENTRY'
,
'EXIT'
,
'SET_TIMER'
,
'RESET_TIMER'
,
'VIA'
,
'ENTRY'
,
'EXIT'
,
'ANY'
,
'SYNTYPE'
,
'ENDSYNTYPE'
,
'CONSTANTS'
,
'ENDPROCEDURE'
,
'NEWTYPE'
,
'ENDNEWTYPE'
,
'ARRAY'
,
'STRUCT'
,
'SYNONYM'
)]
...
...
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