Add initial lexer and parser support for shifting values. Every use of this

will lead to it being rejected though.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21335 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2005-04-19 01:11:03 +00:00
parent 1cbf3abbb8
commit b9266f880a
3 changed files with 29 additions and 0 deletions

View File

@@ -195,6 +195,11 @@ field { return FIELD; }
let { return LET; }
in { return IN; }
!sra { return SRATOK; }
!srl { return SRLTOK; }
!shl { return SHLTOK; }
{Identifier} { Filelval.StrVal = new std::string(yytext, yytext+yyleng);
return ID; }
${Identifier} { Filelval.StrVal = new std::string(yytext+1, yytext+yyleng);