import { parse } from './grammar/grammar';

export default function parser( fileContent ) {
  return parse( fileContent );
}

@@ -85,16 +85,26 @@
 ent ) %7B%0A
+  try %7B%0A  
   return
@@ -126,10 +126,228 @@
 tent );%0A
+  %7D catch (error) %7B%0A    if (error.name === 'SyntaxError') %7B%0A      error.message = error.message.replace(/%5C.$/, '') +%0A        %60 in line $%7B error.line %7D:$%7B error.column %7D.%60;%0A      throw error;%0A    %7D%0A    throw error;%0A  %7D%0A
 %7D%0A

enhance parsers SyntaxErrors with line and column