Permalink
Browse files

Make sure parse_string is passed either a binary or a list

  • Loading branch information...
1 parent bb6b690 commit 196afcf63e427a18f20f4b729764e61f4d3ebd47 Devin Torres committed Feb 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/zucchini.erl
View
@@ -4,7 +4,7 @@
parse_string(String) when is_binary(String) ->
parse_string(binary_to_list(String));
-parse_string(String) ->
+parse_string(String) when is_list(String) ->
{ok, Tokens, _} = zucchini_lexer:string(String),
zucchini_parser:parse(Tokens).

0 comments on commit 196afcf

Please sign in to comment.