More parsing work
This commit is contained in:
@@ -85,9 +85,8 @@ paramlist ::= '(' ['void' | (type typemod [identifier] ['=' expr] {','
|
||||
virtprop ::= ['private' | 'protected'] type ['&'] identifier '{' {('get' | 'set') ['const'] funcattr (statblock | ';')} '}';
|
||||
func ::= {'shared' | 'external'} ['private' | 'protected'] [((type ['&']) | '~')] identifier paramlist ['const'] funcattr (';' | statblock);
|
||||
funcdef ::= {'external' | 'shared'} 'funcdef' type ['&'] identifier paramlist ';'
|
||||
class ::= {'shared' | 'abstract' | 'final' | 'external'} 'class' identifier
|
||||
class ::= {'shared' | 'abstract' | 'final' | 'external' | 'mixin'} 'class' identifier
|
||||
(';' | ([':' identifier {',' identifier}] '{' {virtprop | func | var | funcdef | class} '}'));
|
||||
mixin ::= 'mixin' class;
|
||||
enum ::= {'shared' | 'external'} 'enum' identifier [ ':' primtype ] (';' | ('{' identifier ['=' expr] {',' identifier ['=' expr]} '}'));
|
||||
import ::= 'import' type ['&'] identifier paramlist funcattr 'from' string ';';
|
||||
typedef ::= 'typedef' (primtype | identifier) identifier ';';
|
||||
@@ -96,4 +95,4 @@ interfacemethod ::= type ['&'] identifier paramlist ['const'] ';';
|
||||
interface ::= {'external' | 'shared'} 'interface' identifier (';' | ([':' identifier {',' identifier}] '{' {virtprop | interfacemethod} '}'));
|
||||
|
||||
namespace ::= 'namespace' identifier '{' script '}';
|
||||
script ::= {import | enum | typedef | class | mixin | interface | funcdef | virtprop | var | func | namespace | ';'};
|
||||
script ::= {import | enum | typedef | class | interface | funcdef | virtprop | var | func | namespace | ';'};
|
||||
|
||||
Reference in New Issue
Block a user