The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Suggestion for unix.com gennaro Post Here to Contact Site Administrators and Moderators 5 09-30-2006 09:07 AM
Need your suggestion please.. unknown2205 Shell Programming and Scripting 1 11-21-2005 02:45 AM
I want a suggestion camel High Level Programming 6 06-13-2003 07:59 PM
Suggestion tovsky Post Here to Contact Site Administrators and Moderators 1 08-07-2001 09:40 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-30-2008
jisha jisha is offline
Registered User
  
 

Join Date: Jan 2008
Location: Bangalore,India
Posts: 144
Arrow Suggestion needed

Hi,

I have 4gl file basically for report generation. I need to convert it to some other language (perl/shell preferred).
Is it possible to write a parser that converts the original file to a script?
I hope it can be done. But which method to adopt is my confusion. Is it advisable to use Lex & yacc or rewrite each 4gl file to a corresponding script ?
Or is their any other method to adopt?
Please help ..

Regards
JS
  #2 (permalink)  
Old 06-30-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,808
Consider lex if you have several files to convert. Otherwise the time consumed writing a converter will be greater than doing a manual conversion.
  #3 (permalink)  
Old 06-30-2008
jisha jisha is offline
Registered User
  
 

Join Date: Jan 2008
Location: Bangalore,India
Posts: 144
That is true ..I have more than 100 files to convert .. But i heard lex is an old technology and it may not be wise to adopt it. So is their a better way. For example writing a parser using perl script itself ?
  #4 (permalink)  
Old 06-30-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,313
Old does not mean bad nor not up to date. Look at Unix/Linux for example!
From Wikipedia:
Quote:
Another popular open source version of Lex is Flex, the "fast lexical analyzer".
  #5 (permalink)  
Old 07-01-2008
jisha jisha is offline
Registered User
  
 

Join Date: Jan 2008
Location: Bangalore,India
Posts: 144
Old is Gold !!
The problem here is, am comfortable with Shell and Perl and i dont know anything about Lex & Yacc (doing R&D now )...So if I can do using perl then it is much time saving. I found that learning Lex and yacc is not an easy job. And i dont have anyone to teach me the same. I have to do R&D myself.So the time consumption is going too be too much.I have got other works also due to which i cant spend my whole day for this.
  #6 (permalink)  
Old 07-03-2008
agarwal agarwal is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 24
Sorry no Idea
Closed Thread

Bookmarks

Tags
linux, solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0