3rd Week results: a new parser scaffold

As the oil parser’s source code is not free software, my new objective is to get an unfettered one.

The OSEK Specification (the website is linked on my blogroll) provides all information necessary to write a parser for OIL, so I’ve started to write a new parser in order to replace the deadly SG.exe. :-)

About the code:

  • It was arranged that the parser would have been written in Python. I’ve written some simple parsing code by using yappy, but I got frustrated, despite I love Python. In brief I’m writing it in C using bison as parser generator;
  • I need to manage a fair amount of similar data (for tokens management, by example), thus I’ve decided to lean my code on glib. By doing so I’ll get useful structure (like hashtable) keeping my code portable;
  • I’ll try to keep the design enough flexible to be used for any kind of OSEK implementation.

About OIL grammar:

  • I will modify slightly the provided grammar in order to semplify it, but keeping it complying with the standard.

About code management:

  • I should upload the code on some svn server.

4 Responses

  1. Another OSEK implementation is Trampoline (http://trampoline.rts-software.org/). It’s open source and has a full OIL processor called GOIL. You may be able to modify it to use it with TOPPERS OSEK. Another possibility is to port Trampoline to the AT91SAM7S; this may be an easier approach.

  2. Thanks Jose for your comment.

    Actually I’ve already searched for alternatives, and my mentor told me about Trampoline. I’ve already looked at his OIL parser some weeks ago.

    The bad thing about GOIL si that it’s written using Galgas Compiler Compiler. As far as I know it may also be a good product, but it seems not to be so widespread…

    However in this moment I’m not working at Lejos OSEK, since I’m busy with some technical issues…. and it seems that I’m no longer working on it at all. The source code of the parser is still available, anyway.

  3. Hello,

    I am working in an other osek implementation if you are still interested:

    best regards,
    Mariano.-

  4. Great the web page blocked the url hehe

    the project is called FreeOSEK but the registration name in sourecofge is opensek…

    http:// opensek dot sf dot net

    regards,
    Mariano.-

Leave a Reply