mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Add section directives
This commit is contained in:
@@ -12,13 +12,10 @@ public static partial class Lexer
|
||||
|
||||
public static readonly Parser<string> StatementEnd = Parse.Char(';').Return(";").Or(Parse.LineTerminator);
|
||||
|
||||
public static readonly Parser<string> SectionDirective =
|
||||
from _ in Parse.String(".section").Token()
|
||||
from sectionId in Parse.Letter.AtLeastOnce().Text()
|
||||
select sectionId;
|
||||
|
||||
public static readonly Parser<IImport> Import = ParseImport;
|
||||
|
||||
public static readonly Parser<IDirective> Directive = ParseDirective;
|
||||
|
||||
public static readonly Parser<IBodyItem> BodyItem = ParseBodyItem;
|
||||
|
||||
public static readonly Parser<Program> Program =
|
||||
|
||||
Reference in New Issue
Block a user