From fedb8443003df7a5f87257f795f64abd05072be8 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 25 Mar 2010 19:34:41 +0000 Subject: tools/erlparse: Discard erlang PIDs instead of choking on them as a syntax error --- tools/erlparse.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/erlparse.lua b/tools/erlparse.lua index a5cef464..dc3a2f94 100644 --- a/tools/erlparse.lua +++ b/tools/erlparse.lua @@ -121,6 +121,12 @@ local function readTuple() end local function readBinary() read("<"); -- read < + -- Discard PIDs + if isNumeric(peek()) then + while peek() ~= ">" do read(); end + read(">"); + return {}; + end local t = readTuple(); read(">") -- read > local ch = peek(); -- cgit v1.2.3