j-brant / SmaCC

MIT License
24 stars 16 forks source link

TypeScript parser cannot parse `export... class` #16

Closed badetitou closed 3 years ago

badetitou commented 3 years ago

The TypeScript parser does not support the export modifier for classes

example:

import {
    Component,
    OnDestroy,
    OnInit
} from '@angular/core';

@Component({
    templateUrl: './myComponent.component.html'
})
export class MyComponent extends OtherClass {

}
j-brant commented 3 years ago

I changed the grammar to allow for decorators before the export keyword.