X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Fmeta.g;h=11cb9f8f17f8099f7529151a4fb7d4858d2c8404;hp=02464c31e2e0261a606b409b6fd0b2e158cf88b8;hb=f3b4ef0d81d572694905f4fe284cac6311a29ea4;hpb=df76fcb56242a90011500ab89092d2108350a8ab diff --git a/tests/meta.g b/tests/meta.g index 02464c3..11cb9f8 100644 --- a/tests/meta.g +++ b/tests/meta.g @@ -4,7 +4,15 @@ s = ws! Grammar ws! -Grammar = NonTerminal +/ ws +Grammar = Declaration +/ ws + +Declaration = NonTerminal + | ^"#import" ws! FileName //(ws! "as" ws! Prefix)? + +//Prefix = ([a-zA-Z] ".")+ "*" +FileName = FileNameChar+ -> [\r\n ] +FileNameChar = Space:: "\\ " + | ~[\r\n ] NonTerminal = Word "=" RHS /ws | Word "*" ws! ^"=" ws! RHS