Skip to content

Commit

Permalink
Fixed sample with leex generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-ryabkov authored and happi committed May 4, 2017
1 parent ffb0017 commit 036a96a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/compiler.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ the string/1 function that leex generates to tokenize the test file.
----
2> c(json_tokens).
{ok,json_tokens}.
3> f(File), f(L), {ok, File} = file:read_file("test.json"), L = binary_to_lisile), ok.
3> f(File), f(L), {ok, File} = file:read_file("test.json"), L = binary_to_list(File), ok.
ok
4> f(Tokens), {ok, Tokens,_} = json_tokens:string(L), hd(Tokens).
{'{',1}
Expand Down

0 comments on commit 036a96a

Please sign in to comment.