C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Parser für Script-Sprache

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (German)
View previous topic :: View next topic  
Author Message
Christoph Jerolimov
Guest





PostPosted: Sat Sep 06, 2003 12:09 pm    Post subject: Parser für Script-Sprache Reply with quote



Hallo,

ich würde gerne eine an C / Java / Java-Script anliegende Script-Sprache
schreiben. Die Syntax soll ungefähr wie bei Java sein, also ungefähr so:

class example1 {
public int main() {
int a = 3;
int b = 4;
int c = -(a * (b + 100));
return 0;
}
}

Dafür würde ich gerne einen Parser in C oder C++ schreiben. Allerdings
weiss ich nicht wie ich anfangen die einzelnen Parameter zu parsen.

Meine Überlegung ist bis jetzt so weit das ich zuerst alle Dateien durch
parsen wollte und im Speicher sowas wie eine Virtuelle Tabelle mit allen
Klassen machen wollte die in den Scripts vorkommen (+deren zugehörigen
Funktionen).

Ich denke das man auch noch ohne Verrenkungen den "Einstiegspunkt" also
die main-Methode finden würde, allerdings ergeben sich ab dort arge
Probleme, und dort könnte mir vielleicht einer von euch weiterhelfen mir
eine Anregung zu verschaffen. ;-)


Vielen Dank schonmal.

mfg Christoph

--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.