mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
41 lines
397 B
Text
41 lines
397 B
Text
%{
|
|
#include "qfcc.h"
|
|
#include "qc-parse.h"
|
|
|
|
#define YY_NO_UNPUT
|
|
|
|
%}
|
|
|
|
DIGIT [0-9]
|
|
ID [a-zA-Z_][a-zA-Z_0-9]*
|
|
|
|
%%
|
|
|
|
{DIGIT}+"."{DIGIT}*
|
|
|
|
{ID}
|
|
|
|
"!"|"("|")"|"{"|"}"|"."|"*"|"/"|"&"|"|"|"+"|"-"|"="|"["|"]" return yytext[0];
|
|
|
|
"&&" return AND;
|
|
"||" return OR;
|
|
"==" return EQ;
|
|
"!=" return NE;
|
|
"<=" return LE;
|
|
">=" return GE;
|
|
"<" return LT;
|
|
">" return GT;
|
|
|
|
^#
|
|
|
|
\n
|
|
|
|
.
|
|
|
|
%%
|
|
|
|
int
|
|
yywrap (void)
|
|
{
|
|
return 1;
|
|
}
|