jEdit edit mode for Hugo

This is a discussion / support forum for the Hugo programming language by Kent Tessman. Hugo is a powerful programming language for making text games / interactive fiction with multimedia support.

Hugo download links: https://www.generalcoffee.com/hugo
Roody Yogurt's Hugo Blog: https://notdeadhugo.blogspot.com
The Hugor interpreter by RealNC: http://ifwiki.org/index.php/Hugor

Moderators: Ice Cream Jonsey, joltcountry

OrangeWindies
Posts: 4
Joined: Mon Apr 11, 2005 2:13 am
Location: Abuja, Nigeria
Contact:

jEdit edit mode for Hugo

Post by OrangeWindies »

I'm just getting started with Hugo, so I immediately distracted myself from learning it by writing a Hugo edit mode for my text editor of choice, jEdit.

Anybody else who uses jEdit can download the mode file from here: http://www.caboose.org.uk/dev/hugo/hugo.xml Installation instructions are in the comments at the top of the XML file.

One problem I encountered while writing the edit mode was that there doesn't seem to be a comprehensive list of keywords in the Hugo Book. For example, 'global' doesn't appear in Appendix A's summary of keywords and commands. Have I overlooked some documentation somewhere or should I check the source for a definitive list?

OW

User avatar
pinback
Posts: 17927
Joined: Sat Apr 27, 2002 3:00 pm
Contact:

Post by pinback »

Nigeria, huh? I've got a few business dealings going on there. Tell me, do you know a "DR CLEMENT OKON"?
When you need my help because I'm ruining everything, don't look at me.

OrangeWindies
Posts: 4
Joined: Mon Apr 11, 2005 2:13 am
Location: Abuja, Nigeria
Contact:

Post by OrangeWindies »

I'm afraid I don't know him, but then I've only just moved over here.

User avatar
pinback
Posts: 17927
Joined: Sat Apr 27, 2002 3:00 pm
Contact:

Post by pinback »

Hmm. How about Sir Sambujang Jammeh, or the barrister Momoh Sanni Momoh?

I really need to get in touch with these guys.
When you need my help because I'm ruining everything, don't look at me.

User avatar
Ice Cream Jonsey
Posts: 30193
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: jEdit edit mode for Hugo

Post by Ice Cream Jonsey »

OrangeWindies wrote:Have I overlooked some documentation somewhere or should I check the source for a definitive list?
I don't think so. I think that's the one Pinback pulled from when he made a similar file for EditPlus2.

Though Kent usually pops in before too long, so I'm sure we'll get the definitive answer shortly.


Robb
the dark and gritty...Ice Cream Jonsey!

Kent
Posts: 119
Joined: Fri Jun 27, 2003 12:10 pm

Post by Kent »

Hmm. The definitive list of tokens/keywords recognized by the compiler is in the Hugo Book starting on page 228 or so. Note that this includes some non-language tokens (specifically those with a '#' suffix), and doesn't include the keywords that are used to define various elements for the compiler, namely:

array
attribute
class
compound
constant
enumerate
event
global
object
property
punctuation
removal
replace
routine
synonym
verb
xverb

I think that's it--if you're feeling adventurous you can peek at hcpass.c in the Hugo source code to see what the Pass1() function looks at to start parsing source code.

(Yeah, at some point it would be good to consolidate this all in one place. The next edition of the Hugo Book.)

Hugella2

Post by Hugella2 »

I've got a local copy of the Hugo source 'documented' by Doxygen. If it'd be useful to anyone, let me know and I'll put it online.

Cena

Kent
Posts: 119
Joined: Fri Jun 27, 2003 12:10 pm

Post by Kent »

That sounds interesting. Does it do a good job?

Cryptonomic
Posts: 55
Joined: Wed May 05, 2004 4:35 am
Location: Chicago, IL
Contact:

Post by Cryptonomic »

Kent wrote:Note that this includes some non-language tokens (specifically those with a '#' suffix), and doesn't include the keywords that are used to define various elements for the compiler, namely:
That is probably something I should note in my documentation as well. I had written a "Keywords" section and I had included the very things you list here as being "elements for the compiler."

I should probably update that.

- Jeff

OrangeWindies
Posts: 4
Joined: Mon Apr 11, 2005 2:13 am
Location: Abuja, Nigeria
Contact:

Post by OrangeWindies »

Thanks Kent, I've modified my keywords list to match and uploaded the new mode file.

Hugella
Posts: 73
Joined: Mon Jun 28, 2004 4:45 pm
Location: Minneapolis, Minnesota

Hugo Lib by Doxygen

Post by Hugella »

Kent asked if it did a good job. I'm not the one to properly evaluate it. Someone who knows what they're looking at, let us know if it's any good! :)

http://hugonomicon.sf.net/hugodox/html/

Post Reply