- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
May be its not the best place to ask this question, but why not to try:)
Has anybody met a free-source- or a commercially available solution to perform a run-time Fortran parsing.What I need, is that a user enters a simple (5-10 lines) Fortran code into a notepad-like GUI element of my program, the code is being analyzed and the corresponding actions are being performed. (In my case the user-entered code is just some mathematical equations, but may include also the IF-ENDIF and DO-ENDDO blocks). I know, there are such things for C parsing. May be something like this exists for Fortran?
Thank you in advance!
Link kopiert
5 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
There are many parsing codes for fortran and fortran-like statements. Do a Google search on "Fortran equation parsing code" (no point inrepeating google results here, but you're only a few clicks from code samples). I recall several threads on this in comp.lang.fortran, and possibly here as well.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Well, Wilton. it's a nice parser, but it's only for mathematical expressions, not including Fortran statements like IF and DO
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I'm not sure what your definition of parsing is, but you may be able to use the compiler itself to do what you want. Write code that takes the statements entered into the GUI and then creates a new process to compile, link, and execute them. At my previous job I supported an application that did this with the CVF compiler, and I believe that you should also be able to do it with IVF.
Mike D.
Mike D.
Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite