Lumas Syntax Checker

Enter Definition to Check:



An Example

lumas module com.tech-know-ware.my-example;
/*
An example Lumas definition
*/
import com.tech-know-ware.general as tkwg;

struct  my-example
{
    int <0..255>    participant-id  as  ?;
    Action          action  as  ?;
    struct          my-addition[0..1] 
                            as new.tech-know-ware.com plugin
    {
            bool      tkw-app-capable  as  ?;
    };
};

union  Action
{
    Join            join;
    Message         message  as  msg;
    void            leave;
};

struct  Join
{
    unicode<0..63>  name;
};

struct  Message
{
    int <0..255>    to-participants[1..127]  as  to;
    unicode<1..255> message  as  msg;
    [               // Version 5 additions
    ascii<0..16>    font-name[0..1] as font;
    void            bold[0..1];
    void            italic[0..1];
    void            underlined[0..1] as ul;
    ]
};

[To Lumas Homepage]