State Chart Finishing Actions?

Bob Paddock graceindustr... at gmail.com
Wed Apr 9 18:22:14 UTC 2008


<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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel/attachments/20080409/1f1fbb14/attachment.html>


More information about the ragel-users mailing list