def p_ignorable_statement(s):
 if (s.sy == 'BEGIN_STRING'):
  pos = s.position()
  string_node = p_atom(s)
  s.expect_newline('Syntax error in string', ignore_semicolon=True)
  return Nodes.ExprStatNode(pos, expr=string_node)
 return None

def p_ignorable_statement ( s ) : if ( s . sy == 'BEGIN_STRING' ) : pos = s . position ( ) string_node = p_atom ( s ) s . expect_newline ( 'Syntax error in string' , ignore_semicolon = True ) return Nodes . ExprStatNode ( pos , expr = string_node ) return None
parses any kind of ignorable statement that is allowed in .