I’m a swiss Master student in Computer Science. I’m very interested in C++, open source projects, Linux, Intel Assembly and Agile. I'm currently working on Eddi, a new programming language that I created to improve my skills in C++. I've also worked a lot on Java technologies (Sprint, Osgi, Play!, ...), but I'm not currently working with Java anymore. Baptiste is a DZone MVB and is not an employee of DZone and has posted 51 posts at DZone. You can read more from them at their website. View Full User Profile

Eddi 0.2 : Integers and variables

  • submit to reddit
just pushed the last commits of Eddi 0.2.

This new version allows the use of integers. You can declare int variables and pass int values or variables to the Print operation.

I’ve also refactored the compiled to use a kind of parse tree and several phases. But now, I’m not really satisfied with the design. The classes are too strongly coupled and the parse tree is too specific I think, too many assumptions are made during the semantical analysis. But now, I don’t know how to improve that. I also think that the design and the operations will not support some more advanced adds later, I don’t know… Don’t hesitate if you have any idea or comment on the design :)

I’ve also made some changes to the Lexer in order to improve the performances, but nothing spectacular.

You can now compile this kind of code with Eddi :

int a = 1;
string b = "asdf";
b = "new b";

The next changes will be to add operations on int and perhaps also the concat on two stirngs. I will see. I will also try to improve the design of the compiler if I found some ideas.

The sources are available on Github :

If you want to see the exact version reffered to in this subject, you can select the tag v0.2

From http://www.baptiste-wicht.com/2011/06/eddi-0-2-types-and-variables/

Published at DZone with permission of Baptiste Wicht, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)



Erik Post replied on Tue, 2011/06/21 - 2:52am

Hi Baptiste, perhaps you could include some info on what Eddi actually is?

Manrico Corazzi replied on Tue, 2011/06/21 - 4:19am in response to: Erik Post

A pet programming language, I gather:


Baptiste Wicht replied on Mon, 2011/06/27 - 11:32am

Sorry, I didn't saw the comments here :( Eddi is a programming language I created. I made only for training myself in C++ and it's really basic now. Manrico Corazzi posted the link to the first article about Eddi. If you have others questions, don't hesitate, I will follow the comments on DZone.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.