Cobra Compiler WinForms Explorer
Posted: Sat May 31, 2008 12:51 am
I want to explore the objects in the compiler interactively rather than imagining what their values are by interpreting the code, or sprinkling print/trace statements here and there. Consequently, I've added a WinForms window that let's one browse through the compiler, modules, namespaces, declarations, statements, expressions, etc. These are .NET objects, so what you're seeing are their properties (names and values). For properties that have complex values (e.g., another interesting kind of object), you can drill down via the tree view.
You can use this out of a workspace. See http://cobra-language.com/source/ on how to get one.
In CobraWorkspace\Source, use "win-comp" to build and "cobra-win hello.cobra" to run.
See WinFormsExplorer.cobra for doc string and implementation.
It's not very impressive yet as I just got started today, but once we knock out the TO DO items in the doc string, I think it will be very useful. Also, it's fairly generic right now. It might be possible to break it out as a general tool.
-Chuck
You can use this out of a workspace. See http://cobra-language.com/source/ on how to get one.
In CobraWorkspace\Source, use "win-comp" to build and "cobra-win hello.cobra" to run.
See WinFormsExplorer.cobra for doc string and implementation.
It's not very impressive yet as I just got started today, but once we knock out the TO DO items in the doc string, I think it will be very useful. Also, it's fairly generic right now. It might be possible to break it out as a general tool.
-Chuck