473,794 Members | 2,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

parsing fortran

Hi Can anyone guide me by providing me the code ,for the following
requirement:
desining parser for fortran language(parsin g fortran)

Nov 24 '06 #1
12 2678

pu**********@gm ail.com wrote:
Hi Can anyone guide me by providing me the code ,for the following
requirement:
desining parser for fortran language(parsin g fortran)
Sorry, but No.

Just as no one at a Ford dealership can provide you with the repair
manuals for your Subaru SUV, fortran is completely off-topic in
comp.lang.c

In addition to that, we don't do other peoples homework for them, and
we aren't a source-code supply shop.

Sorry

--
Lew

Nov 24 '06 #2
pu**********@gm ail.com wrote:
Hi Can anyone guide me by providing me the code ,for the following
requirement:
desining parser for fortran language(parsin g fortran)
How many thousands of Euros will you pay me for this?

Richard
Nov 24 '06 #3
pu**********@gm ail.com wrote:
Hi Can anyone guide me by providing me the code ,for the following
requirement:
desining parser for fortran language(parsin g fortran)
The source code of g95 is at http://ftp.g95.org/g95_source.tgz , and
that of gfortran (part of gcc) is at
http://quatramaran.ens.fr/~coudert/g...cc-svn.tar.bz2 . Both g95
and gfortran are Fortran 95 compilers written in C. I suggest
continuing this thread in comp.lang.fortr an if necessary.

Nov 24 '06 #4

<pu**********@g mail.comwrote in message
news:11******** **************@ l12g2000cwl.goo glegroups.com.. .
Hi Can anyone guide me by providing me the code ,for the following
requirement:
desining parser for fortran language(parsin g fortran)
There's an open-source Basic interpreter on my website which will get you
started in the language parsing game. There is also an associated book - you
have to pay for a copy, I'm afraid, but it's not expensive.
--
www.personal.leeds.ac.uk/~bgy1mm
freeware games to download.
Nov 25 '06 #5
pu**********@gm ail.com wrote:
Hi Can anyone guide me by providing me the code ,for the following
requirement:
desining parser for fortran language(parsin g fortran)
Ask in comp.lang.fortr an or comp.compilers.

Nov 25 '06 #6
In article <Wc************ ********@bt.com "Malcolm" <re*******@btin ternet.comwrite s:
<pu**********@g mail.comwrote in message
news:11******** **************@ l12g2000cwl.goo glegroups.com.. .
Hi Can anyone guide me by providing me the code ,for the following
requirement:
desining parser for fortran language(parsin g fortran)
There's an open-source Basic interpreter on my website which will get you
started in the language parsing game. There is also an associated book - you
have to pay for a copy, I'm afraid, but it's not expensive.
Parsing Fortran is not exactly trivial. You need a lot of look-ahead.
For instance, when you see the initial part of a line as:
REALR(5)
you do not yet know whether it is a declaration or a statement. Is it
a declaration of the array R of 5-elements of REAL's or is it an
assignment to the 5-th element of the array REALR? And as keywords are
not reserved, it is possible to have the following declaration:
REALREAL
which declares REAL as a variable of type REAL.
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Nov 26 '06 #7

"Dik T. Winter" <Di********@cwi .nlwrote in message
news:J9******** @cwi.nl...
In article <Wc************ ********@bt.com "Malcolm"
<re*******@btin ternet.comwrite s:
<pu**********@g mail.comwrote in message
news:11******** **************@ l12g2000cwl.goo glegroups.com.. .
Hi Can anyone guide me by providing me the code ,for the following
requirement:
desining parser for fortran language(parsin g fortran)
>
There's an open-source Basic interpreter on my website which will get
you
started in the language parsing game. There is also an associated book -
you
have to pay for a copy, I'm afraid, but it's not expensive.

Parsing Fortran is not exactly trivial. You need a lot of look-ahead.
For instance, when you see the initial part of a line as:
REALR(5)
you do not yet know whether it is a declaration or a statement. Is it
a declaration of the array R of 5-elements of REAL's or is it an
assignment to the 5-th element of the array REALR? And as keywords are
not reserved, it is possible to have the following declaration:
REALREAL
which declares REAL as a variable of type REAL.
It's a lot harder to parse someone else's language specification than to
make up your own as you go along, which was partly why MiniBasic is my own
flavour of BASIC - very recognisable, but with a few quirks.
--
www.personal.leeds.ac.uk/~bgy1mm
freeware games to download.

Nov 26 '06 #8
On Nov 25, 7:33 am, "santosh" <santosh....@gm ail.comwrote:
purushota...@gm ail.com wrote:
Hi Can anyone guide me by providing me the code ,for the following
requirement:
desining parser for fortran language(parsin g fortran)Ask in comp.lang.fortr an or comp.compilers.
Alternatively, you could investigate "The classification of FORTRAN
statements" by Arthur Sale, available at
http://eprints.utas.edu.au/122/. I have implemented this algorithm
(actually the modified version as described in "A Modification of
Sale's Algorithm to Accommodate FORTRAN 77" by J. K. Slape and Peter J.
L. Wallis) and I don't mind sharing it with you if you can convince me
this is not homework. What exactly are you trying to do?

Nov 26 '06 #9
jburgy wrote:
On Nov 25, 7:33 am, "santosh" <santosh....@gm ail.comwrote:
purushota...@gm ail.com wrote:
Hi Can anyone guide me by providing me the code ,for the following
requirement:
desining parser for fortran language(parsin g fortran)Ask in comp.lang.fortr an or comp.compilers.

Alternatively, you could investigate "The classification of FORTRAN
statements" by Arthur Sale, available at
http://eprints.utas.edu.au/122/. I have implemented this algorithm
(actually the modified version as described in "A Modification of
Sale's Algorithm to Accommodate FORTRAN 77" by J. K. Slape and Peter J.
L. Wallis) and I don't mind sharing it with you if you can convince me
this is not homework. What exactly are you trying to do?
Why don't you address the OP?

Nov 26 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

44
3425
by: Carl | last post by:
"Nine Language Performance Round-up: Benchmarking Math & File I/O" http://www.osnews.com/story.php?news_id=5602 I think this is an unfair comparison! I wouldn't dream of developing a numerical application in Python without using prebuilt numerical libraries and data objects such as dictionaries and lists. I have been experimenting with numerical algorithms in Python with a heavy use of the Numeric module. My experience is that Python...
14
2640
by: Viktor Rosenfeld | last post by:
Hi, I need to create a parser for a Python project, and I'd like to use process kinda like lex/yacc. I've looked at various parsing packages online, but didn't find anything useful for me: - PyLR seems promising but is for Python 1.5 - Yappy seems promising, but I couldn't get it to work. It doesn't even compile the main example in it's documentation - mxTexttools is way complicated. I'd like something that I can give a BNF
15
2104
by: Nick Coghlan | last post by:
Thought some folks here might find this one interesting. No great revelations, just a fairly sensible piece on writing readable code :) The whole article: http://www.acmqueue.com/modules.php?name=Content&pa=showpage&pid=271&page=1 The section specifically on white space: http://www.acmqueue.com/modules.php?name=Content&pa=showpage&pid=271&page=3 Cheers,
1
6436
by: Sam | last post by:
Hello all I have a two dimensional array (the dimensions are not known) that needs to be passed to fortran from c++, allocate the dimensions of the array in fortran code, do some filling up of the array in fortran and then accessing it in my c++ code. Say in my c++ code I have; extern "C" { void foo_(float **, int &, int &); }
2
3325
by: NM | last post by:
Hello all, I am supposed to do some mixed programming with c++ and fortran. I was succeeful in exchanging the 2D arrays from fortran to c++ and the other way, but was unable to that same with the 3D arrays, the values passed are not all the same. I am also pasting the fortran and c++ codes so that you could have a look at them. ////C++ Code
81
7357
by: Matt | last post by:
I have 2 questions: 1. strlen returns an unsigned (size_t) quantity. Why is an unsigned value more approprate than a signed value? Why is unsighned value less appropriate? 2. Would there be any advantage in having strcat and strcpy return a pointer to the "end" of the destination string rather than returning a
5
3261
by: gamehack | last post by:
Hi all, I was thinking about parsing equations but I can't think of any generic approach. Basically I have a struct called math_term which is something like: struct math_term { char sign; int constant; int x; int y;
2
4438
by: luis | last post by:
I'm using ctypes to call a fortran dll from python. I have no problems passing integer and double arryas, but I have an error with str arrys. For example: ..... StringVector = c_char_p * len(id) # id is a list of strings Id_dat=StringVector() for i in range(len(Id)): ....Id_dat=id
13
4516
by: Chris Carlen | last post by:
Hi: Having completed enough serial driver code for a TMS320F2812 microcontroller to talk to a terminal, I am now trying different approaches to command interpretation. I have a very simple command set consisting of several single letter commands which take no arguments. A few additional single letter commands take arguments:
0
9518
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10212
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10161
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9035
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2919
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.