def parse_and_instantiate(parent_to, text, indent):
 (all_tokens, seen_ts) = tokenize_snippet_text(parent_to, text, indent, __ALLOWED_TOKENS, __ALLOWED_TOKENS_IN_TABSTOPS, _TOKEN_TO_TEXTOBJECT)
 resolve_ambiguity(all_tokens, seen_ts)
 finalize(all_tokens, seen_ts, parent_to)

def parse_and_instantiate ( parent_to , text , indent ) : ( all_tokens , seen_ts ) = tokenize_snippet_text ( parent_to , text , indent , __ALLOWED_TOKENS , __ALLOWED_TOKENS_IN_TABSTOPS , _TOKEN_TO_TEXTOBJECT ) resolve_ambiguity ( all_tokens , seen_ts ) finalize ( all_tokens , seen_ts , parent_to )
parses a snippet definition in snipmate format from text assuming the current indent .