Skip to content

Instantly share code, notes, and snippets.

@migueldeicaza
Created April 30, 2014 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save migueldeicaza/ab2e99f5c5e195843071 to your computer and use it in GitHub Desktop.
Save migueldeicaza/ab2e99f5c5e195843071 to your computer and use it in GitHub Desktop.
diff --git a/external/rx b/external/rx
--- a/external/rx
+++ b/external/rx
@@ -1 +1 @@
-Subproject commit 00c1aadf149334c694d2a5096983a84cf46221b8
+Subproject commit 00c1aadf149334c694d2a5096983a84cf46221b8-dirty
diff --git a/mcs/mcs/Makefile b/mcs/mcs/Makefile
index d2aa50e..8999939 100644
--- a/mcs/mcs/Makefile
+++ b/mcs/mcs/Makefile
@@ -1,6 +1,6 @@
# To produce a debugging parser, use the version that says "-cvt"
-JAY_FLAGS=-c
-# JAY_FLAGS=-cvt
+#JAY_FLAGS=-c
+JAY_FLAGS=-cvt
thisdir := mcs
SUBDIRS :=
diff --git a/mcs/mcs/cs-parser.jay b/mcs/mcs/cs-parser.jay
index 97cfaac..e9750d9 100644
--- a/mcs/mcs/cs-parser.jay
+++ b/mcs/mcs/cs-parser.jay
@@ -3615,6 +3615,9 @@ anonymous_type_expression
// TODO: lbag comma location
lbag.AddLocation ($$, GetLocation ($2), GetLocation ($4));
}
+ | NEW OPEN_BRACE GENERATE_COMPLETION {
+ $$ = new NewAnonymousType ((List<AnonymousTypeParameter>) null, current_container, GetLocation ($1));
+ }
;
anonymous_type_parameters_opt_comma
@@ -7128,9 +7131,10 @@ public CSharpParser (SeekableStreamReader reader, CompilationSourceFile file, Re
this.compiler = file.Compiler;
this.settings = compiler.Settings;
this.report = report;
-
+
+ if (Environment.GetEnvironmentVariable ("foo") != null)
+ yacc_verbose_flag = 2;
lang_version = settings.Version;
- yacc_verbose_flag = settings.VerboseParserFlag;
doc_support = settings.DocumentationFile != null;
lexer = new Tokenizer (reader, file, session, report);
oob_stack = new Stack<object> ();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment