From fbbec2e6b041b89827bafaf1f2f82f42ab8ea508 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Thu, 5 Mar 2015 14:50:31 -0500 Subject: Some new infix operators, contributed by Gabriel Riba --- src/urweb.lex | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/urweb.lex') diff --git a/src/urweb.lex b/src/urweb.lex index 195fd735..716c44ba 100644 --- a/src/urweb.lex +++ b/src/urweb.lex @@ -376,6 +376,15 @@ xint = x[0-9a-fA-F][0-9a-fA-F]; "&&" => (Tokens.ANDALSO (pos yypos, pos yypos + size yytext)); "||" => (Tokens.ORELSE (pos yypos, pos yypos + size yytext)); + "<<<" => (Tokens.COMPOSE (pos yypos, pos yypos + size yytext)); + ">>>" => (Tokens.ANDTHEN (pos yypos, pos yypos + size yytext)); + "<|" => (Tokens.FWDAPP (pos yypos, pos yypos + size yytext)); + "|>" => (Tokens.REVAPP (pos yypos, pos yypos + size yytext)); + + "`" ({cid} ".")* {id} "`" => (Tokens.BACKTICK_PATH ( (* strip backticks *) + substring (yytext,1,size yytext -2), + pos yypos, pos yypos + size yytext)); + "=" => (Tokens.EQ (pos yypos, pos yypos + size yytext)); "<>" => (Tokens.NE (pos yypos, pos yypos + size yytext)); "<" => (Tokens.LT (pos yypos, pos yypos + size yytext)); -- cgit v1.2.3