[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem in a specification of timestamp



Hi,

Please: I have to specify a value of timestamp type in the european
format:
"'day.month.year hour:minutes:seconds'" like '01.02.2002 10:20:00'
with the delimiter caracter " ' " delimiting it.
I have tried many things but I only get it without the " ' ".
It compilled and have generated all the packages, but when I tried to
execute it gave an error of parsing, saying that he was expecting a
timestamp value (he doesn't recgnized it). I tried the following:

Thanks in advance, Joseane.
___
Helpers

asp = 39;	// ascii value of  '

days_sequency =
	'0'['1'..'9'] | ['1'..'2']['0'..'9'] | '3'['0'..'1'] ;

months_sequency =
	'0'['1'..'9'] | '1'['0'..'2'] ;

years_sequency =
	['2'..'9'] digit digit digit ;

hours_sequency =
	'0'['0'..'9'] | '1'['0'..'9'] | '2'['0'..'3'] ;

minutes_sequency =
	['0'..'5']['0'..'9'] ;

seconds_sequency =
	['0'..'5']['0'..'9'] aspas_simples ;

timestamp_sequency =

	asp days_sequency '.' months_sequency '.' years_sequency
	hours_sequency':' minutes_sequency ':' seconds_sequency asp;

Tokens

operator = ',' ;
timestamp_value =
	timestamp_sequency ;

Productions

actual_param_ts =
	[tsf]:timestamp_value operator timestamp_value;