Added notion of datetime
This commit is contained in:
parent
6bd08d017b
commit
9d79fec8dc
1 changed files with 6 additions and 1 deletions
|
@ -30,6 +30,7 @@ CF_DECLS
|
||||||
struct filter *f;
|
struct filter *f;
|
||||||
struct f_tree *e;
|
struct f_tree *e;
|
||||||
struct f_val v;
|
struct f_val v;
|
||||||
|
struct password_item *p;
|
||||||
}
|
}
|
||||||
|
|
||||||
%token END
|
%token END
|
||||||
|
@ -38,7 +39,7 @@ CF_DECLS
|
||||||
%token <s> SYM
|
%token <s> SYM
|
||||||
%token <t> TEXT
|
%token <t> TEXT
|
||||||
|
|
||||||
%type <i> expr bool pxlen
|
%type <i> expr bool pxlen datetime
|
||||||
|
|
||||||
%nonassoc '=' '<' '>' '~' ELSE IF '.'
|
%nonassoc '=' '<' '>' '~' ELSE IF '.'
|
||||||
%left '+' '-'
|
%left '+' '-'
|
||||||
|
@ -108,6 +109,10 @@ pxlen:
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
datetime: /* Return seconds from epoch, FIXME we want be more user friendly */
|
||||||
|
NUM { $$ = $1; }
|
||||||
|
;
|
||||||
|
|
||||||
CF_CODE
|
CF_CODE
|
||||||
|
|
||||||
CF_END
|
CF_END
|
||||||
|
|
Loading…
Reference in a new issue