Remove uninteresting corpus entries
This commit is contained in:
parent
66460b24fd
commit
c9db5499e9
6 changed files with 11 additions and 155 deletions
20
spec/fixtures/corpus/arithmetic/main.txt
vendored
20
spec/fixtures/corpus/arithmetic/main.txt
vendored
|
|
@ -1,23 +1,3 @@
|
|||
====================
|
||||
numbers
|
||||
===================
|
||||
|
||||
5
|
||||
|
||||
---
|
||||
|
||||
(program (number))
|
||||
|
||||
===================
|
||||
variables
|
||||
===================
|
||||
|
||||
x
|
||||
|
||||
---
|
||||
|
||||
(program (variable))
|
||||
|
||||
====================================
|
||||
variables with greek letters
|
||||
====================================
|
||||
|
|
|
|||
25
spec/fixtures/corpus/c/declarations.txt
vendored
25
spec/fixtures/corpus/c/declarations.txt
vendored
|
|
@ -1,28 +1,3 @@
|
|||
==========================================
|
||||
simple declarations
|
||||
==========================================
|
||||
|
||||
int x;
|
||||
|
||||
---
|
||||
|
||||
(translation_unit
|
||||
(declaration (identifier) (identifier)))
|
||||
|
||||
==========================================
|
||||
simple functions
|
||||
==========================================
|
||||
|
||||
int main() {
|
||||
}
|
||||
|
||||
---
|
||||
|
||||
(translation_unit (function_definition
|
||||
(identifier)
|
||||
(function_declarator (identifier))
|
||||
(compound_statement)))
|
||||
|
||||
==========================================
|
||||
ambiguous declarations
|
||||
==========================================
|
||||
|
|
|
|||
16
spec/fixtures/corpus/cpp/statements.txt
vendored
16
spec/fixtures/corpus/cpp/statements.txt
vendored
|
|
@ -1,19 +1,3 @@
|
|||
==================================================
|
||||
simple functions cpp
|
||||
==================================================
|
||||
|
||||
int main() {
|
||||
x;
|
||||
}
|
||||
|
||||
---
|
||||
|
||||
(translation_unit (function_definition
|
||||
(type_specifier (identifier))
|
||||
(declarator (direct_declarator (direct_declarator (identifier))))
|
||||
(function_body (compound_statement
|
||||
(expression_statement (identifier))))))
|
||||
|
||||
==================================================
|
||||
function calls
|
||||
==================================================
|
||||
|
|
|
|||
26
spec/fixtures/corpus/golang/declarations.txt
vendored
26
spec/fixtures/corpus/golang/declarations.txt
vendored
|
|
@ -4,6 +4,7 @@ simple declarations
|
|||
|
||||
package trivial
|
||||
|
||||
var X struct { Y int64 }
|
||||
type x int64
|
||||
var y = ""
|
||||
func z() {}
|
||||
|
|
@ -11,26 +12,11 @@ func z() {}
|
|||
---
|
||||
|
||||
(program
|
||||
(package_directive (package_name))
|
||||
(type_declaration (type_name) (type_name))
|
||||
(var_declaration (var_name) (string))
|
||||
(func_declaration (var_name) (block_statement)))
|
||||
|
||||
==========================================
|
||||
var declarations
|
||||
==========================================
|
||||
|
||||
package trivial
|
||||
|
||||
var X struct { Y int64 }
|
||||
var Z = ""
|
||||
|
||||
---
|
||||
|
||||
(program
|
||||
(package_directive (package_name))
|
||||
(var_declaration (var_name) (struct_type (var_name) (type_name)))
|
||||
(var_declaration (var_name) (string)))
|
||||
(package_directive (package_name))
|
||||
(var_declaration (var_name) (struct_type (var_name) (type_name)))
|
||||
(type_declaration (type_name) (type_name))
|
||||
(var_declaration (var_name) (string))
|
||||
(func_declaration (var_name) (block_statement)))
|
||||
|
||||
==========================================
|
||||
comments
|
||||
|
|
|
|||
29
spec/fixtures/corpus/javascript/literals.txt
vendored
29
spec/fixtures/corpus/javascript/literals.txt
vendored
|
|
@ -1,36 +1,17 @@
|
|||
==========================================
|
||||
regexes
|
||||
primitives
|
||||
==========================================
|
||||
|
||||
theFunction(/regex1/, /regex2/g);
|
||||
|
||||
---
|
||||
|
||||
(program (expression_statement
|
||||
(function_call (identifier) (arguments (regex) (regex)))))
|
||||
|
||||
==========================================
|
||||
numbers
|
||||
==========================================
|
||||
|
||||
theFunction(100.0, 200);
|
||||
|
||||
---
|
||||
|
||||
(program (expression_statement
|
||||
(function_call (identifier) (arguments (number) (number)))))
|
||||
|
||||
==========================================
|
||||
strings
|
||||
==========================================
|
||||
|
||||
theFunction('', "", 'single-quoted-string', "double-quoted-string");
|
||||
|
||||
---
|
||||
|
||||
(program (expression_statement
|
||||
(function_call (identifier)
|
||||
(arguments (string) (string) (string) (string)))))
|
||||
(program
|
||||
(expression_statement (function_call (identifier) (arguments (regex) (regex))))
|
||||
(expression_statement (function_call (identifier) (arguments (number) (number))))
|
||||
(expression_statement (function_call (identifier) (arguments (string) (string) (string) (string)))))
|
||||
|
||||
==========================================
|
||||
function expressions
|
||||
|
|
|
|||
50
spec/fixtures/corpus/json/main.txt
vendored
50
spec/fixtures/corpus/json/main.txt
vendored
|
|
@ -1,43 +1,3 @@
|
|||
======================================
|
||||
strings with escaped quotes
|
||||
======================================
|
||||
|
||||
"ok\""
|
||||
|
||||
---
|
||||
|
||||
(string)
|
||||
|
||||
======================================
|
||||
strings with other escaped characters
|
||||
======================================
|
||||
|
||||
"ok\n\r\n\\ok"
|
||||
|
||||
---
|
||||
|
||||
(string)
|
||||
|
||||
=============================
|
||||
floating point numbers
|
||||
=============================
|
||||
|
||||
3.14
|
||||
|
||||
---
|
||||
|
||||
(number)
|
||||
|
||||
===================
|
||||
empty arrays
|
||||
===================
|
||||
|
||||
[]
|
||||
|
||||
---
|
||||
|
||||
(array)
|
||||
|
||||
===================
|
||||
arrays
|
||||
===================
|
||||
|
|
@ -59,16 +19,6 @@ arrays
|
|||
(false)
|
||||
(object (string) (string)))
|
||||
|
||||
====================
|
||||
empty objects
|
||||
====================
|
||||
|
||||
{}
|
||||
|
||||
---
|
||||
|
||||
(object)
|
||||
|
||||
===================
|
||||
long objects
|
||||
===================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue