[antlr-interest] Re : pseudocode translator to java,c and Ada

Joe Token joe.token at yahoo.fr
Thu Feb 21 16:04:07 PST 2008


There might be a misunderstanding....
Let's say, i am an average end
user and i want to write requirements in pseudocode that is close to
Pascal (and of course, i have defined a BNF for 'this' pseudocode)
I
doubt that this average end user is familiar to Lisp...(and to follow
you, i shall say that there are a million of Lisp...even i guess you
are talking about smthg like Common Lisp)
Then...
I would like to
know, if someone has the idea of making a Java or Ada translator , from
this "common" pseudocode, just as in the past (some 20 years ago)
people developed CASE tools for the lazy programmers..
Thanks all  !   :-\


----- Message d'origine ----
De : Randall R Schulz <rschulz at sonic.net>
À : antlr-interest at antlr.org
Envoyé le : Vendredi, 22 Février 2008, 0h54mn 02s
Objet : Re: [antlr-interest] pseudocode translator to java,c and Ada

On 
Thursday 
21 
February 
2008 
15:30, 
you 
wrote:
> 
You 
are 
right, 
but 
precisely, 
pseudocode(s) 
are 
not 
programming
> 
languages, 
so 
it 
(they) 
do(es) 
not 
really 
have 
syntax 
rules.

Well, 
then 
there's 
no 
hope 
of 
creating 
a 
parser, 
is 
there?


> 
I'll 
be 
happy 
with 
any 
of 
it 
! 
(close 
to 
Pascal)

I'm 
afraid 
there's 
no 
way 
around 
devising 
a 
completely 
precise 
grammar 
if 
you're 
going 
to 
process 
it 
with 
ANTLR. 
Or 
yacc 
/ 
Bison, 
JavaCC, 
SableCC 
or 
any 
other 
parser 
generator. 
They're 
all 
based 
on 
some 
form 
or 
elaboration 
of 
BNF 
(Backus 
Nauer 
Form). 
That's 
mostly 
what 
it 
means 
to 
be 
a 
formal 
grammar.


>> 
What 
is 
this 
"pseudocode" 
you 
speak 
of? 
There 
are 
a 
million, 
since
>> 
they're 
rarely 
formalized. 
And 
without 
formalization, 
they 
cannot 
be
>> 
translated, 
of 
course.

> 
 so 
...i 
assume 
that 
among 
the 
"million" 
pseudocode, 
at 
least, 
you
> 
have 
one  
to 
propose 
me 
;-)

Well, 
you 
cannot 
do 
better 
then 
LISP!


>> 
_The_ 
translator?  
Unless 
I'm 
missing  
something,
>> 
the 
use 
of 
the 
definite 
article 
is 
unwarranted. 
>
> 
ok, 
one 
translator 
!
>
> 
ok, 
let's 
say 
, 
I'll 
be 
happy 
to 
find 
One 
pseudocode 
translator 
to
> 
Ada, 
for 
instance, 
whatever 
the 
pseudocode 
looks 
like,

Well, 
I 
could 
be 
surprised, 
but 
I 
doubt 
such 
a 
thing 
exists.


> 
thank's 
all 
!
>
> 
Joe


Randall 
Schulz






      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080222/97d67f30/attachment.html 


More information about the antlr-interest mailing list