Fix parsing of empty strings in javascript and golang

This commit is contained in:
Max Brunsfeld 2014-05-20 09:47:26 -07:00
parent c30055ba18
commit 4c9ac3dada
6 changed files with 3578 additions and 3579 deletions

View file

@ -4,13 +4,13 @@ parses trivial programs
package trivial
type x int64
var y = 0
var y = ""
func z() {}
---
(program
(package_directive (package_name))
(type_declaration (type_name) (type_name))
(var_declaration (var_name) (number))
(var_declaration (var_name) (string))
(func_declaration (var_name) (statement_block)))
==========================================

View file

@ -5,6 +5,8 @@ theFunction(
100.0,
200,
/the-regex/,
'',
"",
'the-single-quoted-string',
"the-double-quoted-string"
);
@ -15,6 +17,8 @@ theFunction(
(number)
(regex)
(string)
(string)
(string)
(string))))
==========================================