summaryrefslogtreecommitdiff
path: root/prolog/lexer.py
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-04-24 22:42:30 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-04-24 22:42:30 +0200
commitbe1fa03e5782657a9503bf0c9350b265048fe5d5 (patch)
tree9180eb68f6bf5a359116102939cac4eb685f7971 /prolog/lexer.py
parent192641bb70eeba3b8d24ad0490a70902f518ff5f (diff)
Support CLP(R) expressions in Prolog parser
Diffstat (limited to 'prolog/lexer.py')
-rw-r--r--prolog/lexer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/prolog/lexer.py b/prolog/lexer.py
index 799ebb9..7ca67e1 100644
--- a/prolog/lexer.py
+++ b/prolog/lexer.py
@@ -53,6 +53,7 @@ operators = {
r'//': 'IDIV',
r'mod': 'MOD',
r'**': 'POW',
+ r'^': 'POW',
r'.': 'PERIOD',
r',': 'COMMA',
r';': 'SEMI'