www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/04/16:37:24

Message-Id: <m0z3noJ-000S4oC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: "Rylan" <rylan AT intekom DOT co DOT za>, djgpp AT delorie DOT com
Date: Tue, 4 Aug 1998 17:46:04 +0000
MIME-Version: 1.0
Subject: Re: BASH
In-reply-to: <6q7hoq$fbs$1@news2.saix.net>

"Rylan" <rylan AT intekom DOT co DOT za> wrote:

> I'm still very new to the DJGPP world. I've asked these questions before but
> I have never been able to find a satisfactory answer:
> 
> 1) What is bash? 

A powerfull shell for UNIX.

> What do you use it for?

The same that command.com, but the differences are as huge as the differences 
between UNIX and DOS. 
In djgpp is useful because you can run scripts designed for UNIX, they are 
used to configure packages (for example). Imagine batch files but 100 times 
more powerfull.

> 2) I know that flex is a "lexical analyzer". What's that?! What do you use
> it for?

Suppose you want to write a compiler, you know that the "things" you'll have 
are: numbers, variables, etc. Well... how can you separate the text in these 
categories? you can do it with a lexical analyzer.

> 3) YACC (yet another compiler compiler) - ok? What is a "compiler compiler"?

A tool to compile something that will be a compiler. A compiler of compilers.

> Why do you want to use it? 

Ones you separated numbers, variables, etc. You can go farther and analyze 
what the things are to then compile. For example:

a=10;

Flex will see a variable, a symbol and a number, then you define a rule that 
says how to assign a value to a variable. How? Using bison (the GNU yacc).

> For what?

Compilers, interpreters, etc.
 
> Any replies appreciated! Please reply by mail if at all possible.

I'm doing that but one mail I sent you was rejected :-(

SET 
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019