Esempio n. 1
0
 void HandleLocalNameListStatement(LocalNameListStatement tree)
 {
     if (tree.exp_list != null)
     {
         HandleExpList(tree.exp_list, tree.name_list.names.Count);
     }
     else
     {
         FillNil(GetNextRegisterId(), GetNextRegisterId() + tree.name_list.names.Count, tree.line);
     }
     HandleNameList(tree.name_list);
 }
Esempio n. 2
0
        LocalNameListStatement ParseLocalNameList()
        {
            var statement = new LocalNameListStatement(_current.m_line);

            statement.name_list = ParseNameList();
            if (LookAhead().m_type == (int)'=')
            {
                NextToken();
                statement.exp_list = ParseExpList();
            }
            return(statement);
        }