From 9682ef6c79b13f8842c758b6a2c74b1403de7817 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 10 Sep 2014 13:31:04 -0700 Subject: [PATCH] Rename `examples` directory to `spec/fixtures` - I want to move away from having complete grammars for real languages (e.g. javascript, golang) in this repo. These languages take a long time to compile, and they now exist in their own repos (node-tree-sitter-javascript etc). - I want to start testing more compiler edge cases through integration tests, so I want to put more small, weird grammars in here. That makes me not want to call the directory `examples`. --- {examples => spec/fixtures}/grammars/arithmetic.cc | 0 {examples => spec/fixtures}/grammars/golang.cc | 0 {examples => spec/fixtures}/grammars/helpers.cc | 0 {examples => spec/fixtures}/grammars/helpers.h | 0 {examples => spec/fixtures}/grammars/javascript.cc | 0 {examples => spec/fixtures}/grammars/json.cc | 0 {examples => spec/fixtures}/parsers/arithmetic.c | 0 {examples => spec/fixtures}/parsers/golang.c | 0 {examples => spec/fixtures}/parsers/javascript.c | 0 {examples => spec/fixtures}/parsers/json.c | 0 tests.gyp | 8 ++++---- 11 files changed, 4 insertions(+), 4 deletions(-) rename {examples => spec/fixtures}/grammars/arithmetic.cc (100%) rename {examples => spec/fixtures}/grammars/golang.cc (100%) rename {examples => spec/fixtures}/grammars/helpers.cc (100%) rename {examples => spec/fixtures}/grammars/helpers.h (100%) rename {examples => spec/fixtures}/grammars/javascript.cc (100%) rename {examples => spec/fixtures}/grammars/json.cc (100%) rename {examples => spec/fixtures}/parsers/arithmetic.c (100%) rename {examples => spec/fixtures}/parsers/golang.c (100%) rename {examples => spec/fixtures}/parsers/javascript.c (100%) rename {examples => spec/fixtures}/parsers/json.c (100%) diff --git a/examples/grammars/arithmetic.cc b/spec/fixtures/grammars/arithmetic.cc similarity index 100% rename from examples/grammars/arithmetic.cc rename to spec/fixtures/grammars/arithmetic.cc diff --git a/examples/grammars/golang.cc b/spec/fixtures/grammars/golang.cc similarity index 100% rename from examples/grammars/golang.cc rename to spec/fixtures/grammars/golang.cc diff --git a/examples/grammars/helpers.cc b/spec/fixtures/grammars/helpers.cc similarity index 100% rename from examples/grammars/helpers.cc rename to spec/fixtures/grammars/helpers.cc diff --git a/examples/grammars/helpers.h b/spec/fixtures/grammars/helpers.h similarity index 100% rename from examples/grammars/helpers.h rename to spec/fixtures/grammars/helpers.h diff --git a/examples/grammars/javascript.cc b/spec/fixtures/grammars/javascript.cc similarity index 100% rename from examples/grammars/javascript.cc rename to spec/fixtures/grammars/javascript.cc diff --git a/examples/grammars/json.cc b/spec/fixtures/grammars/json.cc similarity index 100% rename from examples/grammars/json.cc rename to spec/fixtures/grammars/json.cc diff --git a/examples/parsers/arithmetic.c b/spec/fixtures/parsers/arithmetic.c similarity index 100% rename from examples/parsers/arithmetic.c rename to spec/fixtures/parsers/arithmetic.c diff --git a/examples/parsers/golang.c b/spec/fixtures/parsers/golang.c similarity index 100% rename from examples/parsers/golang.c rename to spec/fixtures/parsers/golang.c diff --git a/examples/parsers/javascript.c b/spec/fixtures/parsers/javascript.c similarity index 100% rename from examples/parsers/javascript.c rename to spec/fixtures/parsers/javascript.c diff --git a/examples/parsers/json.c b/spec/fixtures/parsers/json.c similarity index 100% rename from examples/parsers/json.c rename to spec/fixtures/parsers/json.c diff --git a/tests.gyp b/tests.gyp index 8f7adf88..dad8dec6 100644 --- a/tests.gyp +++ b/tests.gyp @@ -8,12 +8,12 @@ ], 'include_dirs': [ 'src', - 'examples', 'spec', 'externals/bandit', ], 'sources': [ - '