PDA

View Full Version : MEL Syntax - can more experienced people than me please check this ;)


mixermanic
09-09-2009, 08:32 AM
Hi guys,

I am in the process of creating a syntax highlight file for my text editor. Can people who are more experienced than me with MEL (which is probably most people ;) ) please just give this a quick glance and see if there are any noticable errors.

The commands are not listed here - those I am taking from the commands index of the docs.

Line Comment //
Block Comment Start /*
Block Comment End */

Flag -
Brace Open (Indent) {
Brace Closed (Outdent) }

Variable start $

Strings enclosed in "
Single quotes NOT used - is this correct?

DATA TYPES:
int
float
vector
matrix
string

BOOLEAN CONSTANTS:
false
no
off
on
true
yes

FLOW CONTROL:
break
case
continue
default
do
else
for
if
in
switch
while

OTHER KEYWORDS:
alias
catch
global
proc
return
source

OPERATORS ETC:
(
)
[
]
!
%
&
*
+
-
.
/
:
<
=
>
?
^
|

SPECIAL CHARACTERS:
\"
\n
\t
\r
\\


Many thanks,

Martin

Robert Bateman
09-09-2009, 01:11 PM
Strings enclosed in "
Single quotes NOT used - is this correct?

yup, though you have the backwards ` to return the result of a func into a variable.

CGTalk Moderation
09-09-2009, 01:11 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.