[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A language-to-C (or C++) translator
From: |
Stefano Simonucci |
Subject: |
A language-to-C (or C++) translator |
Date: |
Fri, 16 Jun 2006 11:35:20 +0200 |
Hi!
I am trying to make a translator from a language (infix notation
calculator, for example) to C (or C++).
For example I wish to traslate the following expression
c=a*(b+c)+q
which originate from this sostitution rules
NT-> c = NT (NT = Non Terminal)
|
NT + q
|
a * NT
|
(b+c)
into the following
TMP_1=b+c;
TMP_2=a*TMP_1;
TMP_3=TMP_2+q;
c=TMP_3;
Do you know some example which treats a similar case?
Thank you
Stefano
- A language-to-C (or C++) translator,
Stefano Simonucci <=