Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Modula 3 > Re: (Help) Keyw...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 124 of 149
Post > Topic >>

Re: (Help) Keywords and Itentifiers in Modula 3.

by "D.J.Griffiths" <djgriffiths@[EMAIL PROTECTED] > Oct 28, 2005 at 06:07 PM

Hello. The last post on this list was months ago, and that was just a guy
asking, "Is anybody there?".

nossogrupo@[EMAIL PROTECTED]
 wrote:
> I have to do a work for Formal Languages at my university and I have to
> create a lexical analyzer for modula 3 using lex (flex), but I never
> programmed in Modula3.
> 
> First I am having a little trouble whith the identifiers because in the
> grammar I have it seems that " __some_variable " is not a valid
> identifiers, more precisely, that I cant initiate a identifires (e.g. a
> variable name) whith the char _  . Is it true or can I use  _ to
> initialize identifiers names?

You need the compiler; last time I looked, it was on www.elegosoft.com.
Perhaps you could get by with a few pages from that site.
In file doc/reference/syntax.html:

Id = Letter {Letter | Digit | "_"}.

That is, a name must start with a letter, but any combination of letters,
digits, underscores may follow.
> 
> Second, in my grammar all keywords and resercated identifiers are UPPER
> CASE, and it says that Modula3 is case sensitive. So, is realy Modula3
> case sensitive and do I have to type all the keywords in UPPER CASE or
> can I type it in both lower an UPPER case?
> 
Yes, M3 is case-sensitive. IF THEN ELSE END are keywords; if,then,else,end
are available as names for variables. Is your ****ft-key broken?

HTH
 




 3 Posts in Topic:
(Help) Keywords and Itentifiers in Modula 3.
nossogrupo@[EMAIL PROTECT  2005-10-27 11:44:11 
Re: (Help) Keywords and Itentifiers in Modula 3.
"D.J.Griffiths"  2005-10-28 18:07:55 
Re: (Help) Keywords and Itentifiers in Modula 3.
Henning Thielemann <co  2005-10-31 16:06:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 20 0:17:25 CDT 2008.