Changeset 960


Ignore:
Timestamp:
Jun 21, 2012 4:34:00 PM (10 years ago)
Author:
jemian
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • specdomain/src/specdomain/test/specmacrofileparser.py

    r959 r960  
    121121        """
    122122        line_number = 0
    123         state = 'command level'
     123        state = 'global'
    124124        state_stack = []
    125125        for line in self.buf.split('\n'):
     
    127127                raise RuntimeError, "unexpected parser state: " + state
    128128            line_number += 1
    129             if state == 'command level':
     129            if state == 'global':
    130130
    131131                m = self._match(lgc_variable_sig_re, line)
     
    232232
    233233if __name__ == '__main__':
    234     p = SpecMacrofileParser('test-battery.mac')
     234    p = SpecMacrofileParser('../test/test-battery.mac')
    235235    #print p.ReST()
    236236    print p
    237     p = SpecMacrofileParser('cdef-examples.mac')
     237    p = SpecMacrofileParser('../test/cdef-examples.mac')
    238238    #print p.ReST()
Note: See TracChangeset for help on using the changeset viewer.