Suggestion needed


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Suggestion needed
# 1  
Old 06-30-2008
CPU & Memory 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  
Old 06-30-2008
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  
Old 06-30-2008
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  
Old 06-30-2008
Old does not mean bad nor not up to date. Look at Unix/Linux for example! Smilie
From Wikipedia:
Quote:
Another popular open source version of Lex is Flex, the "fast lexical analyzer".
# 5  
Old 07-01-2008
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 Smilie )...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  
Old 07-03-2008
Sorry no Idea Smilie Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Regarding suggestion

Hello Admin/moderators Team, Greetings !! This is regarding a suggestion which may help our forum if this is possible. Thanks, R. Singh "GOD helps those who help themselves" (2 Replies)
Discussion started by: RavinderSingh13
2 Replies

2. Shell Programming and Scripting

Need Suggestion

Hi, I have the requirement to run multiple SQLs against database running on a server and save the output of SQL executed to a log. I thought about writing a Function in sh that will take file name as argument and function should return the SQL output to calling program. E.g. function Run_SQL... (0 Replies)
Discussion started by: bhupinder08
0 Replies

3. UNIX for Dummies Questions & Answers

OS suggestion

Hello, I'm working on a Linux 2.6.32-33-server (Ubuntu 4.4.3). I typed in man -k package and got e.g. apt I typed in apt --help and got: The program 'apt' is currently not installed. You can install it by typing: sudo apt-get install openjdk-6-jdkI don't understand where this... (2 Replies)
Discussion started by: daWonderer
2 Replies

4. Post Here to Contact Site Administrators and Moderators

Suggestion

Can we have a forum that is dedicated to topics concerning power management ? It'd be great to have a few moderators to address these issues concerning the power-management. More-so-ever since research related to power management at the OS level is kicking up a lot of dust and becoming a hot area... (7 Replies)
Discussion started by: vishwamitra
7 Replies

5. Shell Programming and Scripting

need your suggestion

Hi all: I need your suggestion about how to making this script Purpose:- Monitor log for the system OS: Unix Sun Solaris 10 Hold oracle database 10 g Life time for the system cycle to 48 hours the system working as the follow 1- the system is divided into three steps 2-... (0 Replies)
Discussion started by: dellsh
0 Replies

6. UNIX for Advanced & Expert Users

suggestion about file directory structure needed

Hello: I have a large amout of image files that will be stored in Solaris machine. I read some posts here, but still not sure what to do, please advise. Thanks. The question is: shoudl i put all these files in as many level of directories, or put in 2-3 level directories? i.e.... (3 Replies)
Discussion started by: qfs0804
3 Replies

7. Shell Programming and Scripting

Need your suggestion please..

can anyone rite here guide me. i want to know which reference books that all of you recommended for C Shell dummies like me...(beginner) (1 Reply)
Discussion started by: unknown2205
1 Replies

8. Programming

I want a suggestion

I am a student and I love the computer very much , especially in programming. However I know little about programming . I don't know which I should learn (JAVA and C++). Would you like to give me a suggestion ? Thanks! (6 Replies)
Discussion started by: camel
6 Replies

9. Post Here to Contact Site Administrators and Moderators

Suggestion

As I was just pondering to myself I relized that emergency's do happen and there are times when people need an anwser to their problem ASAP. So what i was thinking why not add a live chat to this board this way people could chat amongst each other in real time. I know this could be done with a... (1 Reply)
Discussion started by: tovsky
1 Replies
Login or Register to Ask a Question