Re: still confused

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Mon, 30 Oct 2000, you wrote:
> MAYBE I"M STUPID but I still don't know what to do with Euphoria.
>
> 1. I typed in "ex guru" (from "Start" and "Run") and I got this window with
> instructions that start with "Current Directory Drive " in purple, then
> "Enter keywords that will define the subject you are interested in."  So I
> typed in "printf" to see what it would do, and it called up some of the
> programming from my "C" quiz.  So I am baffled about what "guru" is for.

guru is a "grep" written in Euphoria. It will find every instance of the word
you type in in any files in the current directory, and show you the file(s) in
which they appear. It is not, despite the name, a tutorial. The tutorials are
located in the directory euphoria/tutorial.

All Euphoria .ex and .e files are just _plain text_ files, you can open them
with notepad or wordpad, and read them. Most have some kind of comments
at the top which explain the purpose of the file.  For example, guru.ex
begins:
 -- Guru
-- usage:
-- to search EUPHORIA directories:
--        guru word1 word2 word3 ...

-- Euphoria .doc and other files are searched. .htm files are skipped.

-- to search the current directory and all subdirectories:
--      cdguru word1 word2 word3 ...

-- Searches for the best articles that contain the words that you type.
-- Each word can contain * and ? wildcard characters.
-- The articles are given a score and presented to you sorted by score.
-- The scoring system strongly favors articles that contain several of
-- your words, rather than just several occurrences of one of your words.
-- Some very common words are ignored (see noise_words).
-- e.g.
--        guru sequence* atom *pend g?r?

-- Results are displayed on screen and also saved in "c:\guru.out"
-- or $HOME/guru.out (Linux).

> 2.  Someone said:
> >So, let's suppose you've gotten into the command prompt, and you're in
> C:\Euphoria\Demo
>
> So, let's suppose you've gotten into the command prompt, and you're in
> C:\Euphoria\Demo<

>    So I tried that, and I got "Bad command or file name."

But did you actually change to the C:\Euphoria\Demo directory?
You really need to do all this in a DOS window, you know.

> 3.  I downloaded "Chrefman" and unzipped it, and now I can't find it.  I
> started to unzip it again, but the "Zip" program indicated it was already
> unzipped.  Any hints?

Yes. Chrefman is just the html docs compiled into a Microsoft help file format.
They're handy, but you don't really need them. Just point your web browser at
C:\Euphoria\html, and browse away. All the same files are there.

>Actually I guess my programming skills are still in the beginner stage; my
>previous programming focused on user input and simple "if" statements.  In
>"C" you usually need some "include" statements, which are not needed in
>QBasic; if Euphoria is translated to C, I would think some "include"
>statements might be needed when I get to the actual programming;  is a guide
>to that in the "Chrefman" file?

No disrespect, but I think your programming skills may be better than your
computer skills. Changing directories and executing programs is pretty basic
stuff. If you want to run a program written in QBasic, don't you change to
the directory where your program is stored, and type qbasic myprog?
Same thing with Euphoria, except you type ex myprog.

If you can get _any_ C program to compile and run, you shouldn't have problems
with Euphoria. Many simple Eu programs do not require any includes, but more
complicated ones will. How do you know when you need an include? By reading
the documentation. You may find it makes things easier if you print out the
manuals. Start with refman.doc and then library.doc.

Regards,
Irv

> Thank you for being patient with me.
>                                                               Wayne

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu