gennaio 9, 2009
My Dynamics AX pains and tools :-)
My boss ask my to fix a complex bug on Dynamic AX module, that’s a great challenge for me: I do not know anything on AX and X++…
My approch was the following:
- - understand X++ syntax
- - analyze the code… that’s relay painful, thousand of undocumented/not commented lines of code! (and AX IDE is not so smart)
I tryed with differnet and more confortable approach: parse source code and implement a code analizer in order to get detailed info.
- - class diagram
- - types references dependency
- - approximate a sequence diagram
The tool I’m developing in based on .NET and GoldParser, my first resut afrer 3 days is:
I have X++ (quite completed) grammar on gold parser
I have a grammar tree on a .NET model
I have a complete class definition, included fields an local variables definitions.
My next steps will be:
- write a types dependency analyzer tool
- write a graphical rappresentation with WPF
- write a sequence diagram analyzer and a graphical representation (may be too complex)