[ragel-users] State Chart Finishing Actions?
Adrian Thurston
thurs... at cs.queensu.ca
Wed Apr 9 20:55:23 UTC 2008
On the very last line of the example you provided you could change
),
to
) @A,
Cheers,
Adrian
Bob Paddock wrote:
> <mailto:ragel-users at googlegroups.com>
>
> I have the following State Chart snippet:
>
> FlashPageSize: (
> '>' @start_signal_received -> UnitID |
>
> 'Q' @{FlashPageSize_u16 = 32;} -> EEPROMSize |
> 'R' @{FlashPageSize_u16 = 64;} -> EEPROMSize |
> 'S' @{FlashPageSize_u16 = 128;} -> EEPROMSize |
> 'T' @{FlashPageSize_u16 = 256;} -> EEPROMSize |
> 'U' @{FlashPageSize_u16 = 512;} -> EEPROMSize
> ),
>
> EEPROMSize: (
> '>' @start_signal_received -> UnitID |
>
> '.' @{EEPROMFileSize_u16 = 64;} -> BaudSwitch |
> '/' @{EEPROMFileSize_u16 = 128;} -> BaudSwitch |
> '0' @{EEPROMFileSize_u16 = 256;} -> BaudSwitch |
> '1' @{EEPROMFileSize_u16 = 512;} -> BaudSwitch |
> '2' @{EEPROMFileSize_u16 = 1024;} -> BaudSwitch |
> '3' @{EEPROMFileSize_u16 = 2048;} -> BaudSwitch |
> '4' @{EEPROMFileSize_u16 = 4096;} -> BaudSwitch |
>
> '!' @FlashPageRequest -> PageRequest # Page
> request here indicates we have no EEPROM
> ),
>
> How do I call a function (@Finishing Action?) for for all
> transitions leaving EEPROMSize? I don't know the syntax for
> doing that in conjunction with a State Chart.
>
>
> >
More information about the ragel-users
mailing list