Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Line endings fixed.

  • Loading branch information...
commit 07a6879a671a0e5a6985aaef3ed9d59b80ac5cd1 1 parent 91f8e7d
@rampelstinskin authored
Showing with 49 additions and 49 deletions.
  1. +49 −49 N2Parser/Main.n
View
98 N2Parser/Main.n
@@ -11,58 +11,58 @@ using System.Console;
using System.Linq;
using SCG = System.Collections.Generic;
-
-[ParserGrammar(Options = EmitDebugSources,
- grammar
- {
- using N2Parser;
-
- [Ast()]
- Modifier : Ast;
-
- [Ast(ModifierList)]
- Modifiers : Ast = Modifier*;
-
- [Ast(KeyWord)] New is Modifier = "new"S;
- [Ast(KeyWord)] Public is Modifier = "public"S;
- [Ast(KeyWord)] Protected is Modifier = "protected"S;
- [Ast(KeyWord)] Internal is Modifier = "internal"S;
- [Ast(KeyWord)] Private is Modifier = "private"S;
- [Ast(KeyWord)] Partial is Modifier = "partial"S;
- [Ast(KeyWord)] Virtual is Modifier = "virtual"S;
- [Ast(KeyWord)] Volatile is Modifier = "volatile"S;
- [Ast(KeyWord)] Static is Modifier = "static"S;
- [Ast(KeyWord)] Readonly is Modifier = "readonly"S;
- [Ast(KeyWord)] Sealed is Modifier = "sealed"S;
- [Ast(KeyWord)] Override is Modifier = "override"S;
- [Ast(KeyWord)] Abstract is Modifier = "abstract"S;
- [Ast(KeyWord)] Extern is Modifier = "extern"S;
+
+[ParserGrammar(Options = EmitDebugSources,
+ grammar
+ {
+ using N2Parser;
+
+ [Ast()]
+ Modifier : Ast;
+
+ [Ast(ModifierList)]
+ Modifiers : Ast = Modifier*;
+
+ [Ast(KeyWord)] New is Modifier = "new"S;
+ [Ast(KeyWord)] Public is Modifier = "public"S;
+ [Ast(KeyWord)] Protected is Modifier = "protected"S;
+ [Ast(KeyWord)] Internal is Modifier = "internal"S;
+ [Ast(KeyWord)] Private is Modifier = "private"S;
+ [Ast(KeyWord)] Partial is Modifier = "partial"S;
+ [Ast(KeyWord)] Virtual is Modifier = "virtual"S;
+ [Ast(KeyWord)] Volatile is Modifier = "volatile"S;
+ [Ast(KeyWord)] Static is Modifier = "static"S;
+ [Ast(KeyWord)] Readonly is Modifier = "readonly"S;
+ [Ast(KeyWord)] Sealed is Modifier = "sealed"S;
+ [Ast(KeyWord)] Override is Modifier = "override"S;
+ [Ast(KeyWord)] Abstract is Modifier = "abstract"S;
+ [Ast(KeyWord)] Extern is Modifier = "extern"S;
[Ast(KeyWord)] Unsafe is Modifier = "unsafe"S;
- }
-)]
-public abstract class ModifierParser
-{}
-
-[ParserGrammar(Options = EmitDebugSources,
- grammar
- {
- using N2Parser;
-
- [Ast(Open, Expressions, Close)]
+ }
+)]
+public abstract class ModifierParser
+{}
+
+[ParserGrammar(Options = EmitDebugSources,
+ grammar
+ {
+ using N2Parser;
+
+ [Ast(Open, Expressions, Close)]
AttributeArgs : Ast = "("s (Expression, ","s)* ")"s;
-
- [Ast(Name, Args)]
+
+ [Ast(Name, Args)]
Attribute : Ast = Identifier AttributeArgs?;
-
- [Ast(Open, Attributes, Comma, Close)]
- AttributeSection : Ast = "["s (Attribute, ","s)+ (","s)? "]"s;
-
- [Ast(Sections)]
- Attributes : Ast = AttributeSection*;
- }
-)]
-public abstract class AttributeParser
-{}
+
+ [Ast(Open, Attributes, Comma, Close)]
+ AttributeSection : Ast = "["s (Attribute, ","s)+ (","s)? "]"s;
+
+ [Ast(Sections)]
+ Attributes : Ast = AttributeSection*;
+ }
+)]
+public abstract class AttributeParser
+{}
[ParserGrammar(Options = EmitDebugSources,
grammar
Please sign in to comment.
Something went wrong with that request. Please try again.