1. still confused

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.

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."

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?

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?

Thank you for being patient with me.
                                                              Wayne

new topic     » topic index » view message » categorize

2. Re: still confused

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 message » categorize

3. Re: still confused

Wayne you ran a Euphoria program
Congats!

irv is right:
Guru searches for the best articles in the directory you're in,
that contains the words that you type

to help further:

I go back to the theory that you should download
and install: Notetab Light
ftp://ftp.privatei.com/pub2/drff/ntfree.zip

also, download this:
http://www.rapideuphoria.com/clipbook.zip
and put euphoria.clb (which is a clipbook Lib for Notetab)
into \Notetab Light\Libraries

Run Notetab after you've installed notetab and copied
euphoria.clb into \Notetab Light\Libraries
select the euphoria clipbook

now you can open an .e , .ex or .exw file from any directory
and under LAUNCH in Notetab click on
ex.exe (If DOS) and exw.exe (If WIN)
and the program should run......

This may seem fairly complicated but,
can be accomplished reasonably fast and easy....

Notetab will ease you into programming Euphoria
by allowing you to open many euphoria programs
at once and tabing through them to find out how
others make euphoria do it's things.

If you have any further questions
I'll be happy to help:

E-Mail me here:
euman at bellsouth.net

new topic     » goto parent     » topic index » view message » categorize

4. Re: still confused

hi mike,

have you not got anything working yet?  There is a program with .exe at the
end in the euphoria files you unzipped.  This essentially runs all the other
files you make with an extension of .ex at the end.  So for example the demo
folder contains programs with filename.ex

How i got started with euphoria i got the computer to recognise that all
programs ending with the extension .ex should be run by the program exw.exe
(for windows programs) and ex.exe for dos programs.

Basically if you know how to get the right extensions in this case .ex run
by the right programs your away.

I hope i'm not confusing you it really is easier than i'm making it sound!
Its just a bit of sa struggle at first, but don't be disheartened its quite
a good programming language, and easy to learn even though some bits are a
bit of a struggle.

Mail me if you want me to clarify anything and i'll try to help further if i
can!

craig
----- Original Message -----
From: "Wayne Thompson" <Mrwayne51736 at CS.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Monday, October 30, 2000 5:26 PM
Subject: still confused


> 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.
>
> 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."
>
> 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?
>
> 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?
>
> Thank you for being patient with me.
>                                                               Wayne
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: still confused

On 30 Oct 2000, at 14:11, Euman wrote:


> I go back to the theory that you should download
> and install: Notetab Light
> ftp://ftp.privatei.com/pub2/drff/ntfree.zip

TextPad is good too, and you can do programmable Euphoria syntax
coloring. It's a different version of Notetab, i suppose, but i tried Notetab
first, then tried it again later, and stayed with TextPad.

www.textpad.com

Kat

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu