-
cwrapp made 1 file-release changes.
2009-11-02 02:35:01 UTC in SMC - The State Machine Compiler
-
cwrapp made 2 file-release changes.
2009-11-02 02:33:01 UTC in SMC - The State Machine Compiler
-
One more thought about "-rawaction". How about adding a method FSMContext.redirect(State state) wherein the programmer could dynamically change the next state from within the transition actions? So if the transition's raw code catches an exception, the next state could be changed on the fly.
2009-10-17 14:00:25 UTC in SMC - The State Machine Compiler
-
Certainly SMC can be used to parse. SMC is used to lex (break the input into token) and parse .sm files. Further I have written my own XML parser using SMC. If you want to see how SMC works as a lexer and parser then download the SMC source distribution and go to the net/sf/smc/parser directory. Look at SmcLexer.sm and SmcParser.sm. The XML parser code is not currently available.
Parser code...
2009-10-17 13:57:16 UTC in SMC - The State Machine Compiler
-
Francois wrote suggesting we replace the generator constructor arguments with an SmcOptions class. This is a good start but I think we need to review the Generator code entirely. The generator code is highly similar between target languages. My hope is we can move most of the generator code to SmcCodeGenerator. The code generator subclasses would then be responsible only for actual code...
2009-10-17 13:29:01 UTC in SMC - The State Machine Compiler
-
Would the "-rawaction" command line option I mentioned in the "Accessing static methods" feature request (2718920) resolve this issue. If "-rawaction" is specified then transition, entry and exit actions are read in verbatim and echoed to the target source file. The programmer using this option can use the target language in complete freedom including exception...
2009-10-17 12:52:41 UTC in SMC - The State Machine Compiler
-
I agree. %fsmclass is the correct solution.
2009-10-17 12:33:11 UTC in SMC - The State Machine Compiler
-
Why better for users to compile and sign statemap.dll? Is there a shortcoming with an open source project signing its DLL?
Of course we do have the overall issue of "your compiler is not compatible with my compiler" issue. The only real resolution is to make the source code readily available and the user can compile it with their compiler. Is this the problem with signing? If I sign with one...
2009-10-17 12:31:44 UTC in SMC - The State Machine Compiler
-
I have a more radical idea. Add a command line option like -rawaction which causes SMC to read in transition, entry and exit actions as raw target language source code which is then echoed to the target language source file. This way the programmer has as much programming freedom as desired within the action block. On the flip side it means appending "ctxt." to all context class method calls put...
2009-10-17 12:24:21 UTC in SMC - The State Machine Compiler
-
cwrapp made 2 file-release changes.
2009-10-08 01:36:01 UTC in SMC - The State Machine Compiler