Commit abfe2a93 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fixed support of DECISION ANY

parent 9c203d77
......@@ -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:
......
......@@ -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')]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment