Home | History | Annotate | Download | only in tools

Lines Matching refs:Block

970 class Block(object):
971 """A class used to model a block of input source text.
973 There are two block types:
979 of Block objects (grouped in a BlockList object for convenience)
983 """Initialize a new block, if 'directive' is None, it is a text block.
1015 """Return True iff this is a directive block."""
1019 """Return True iff this is a conditional directive block."""
1030 """Return True iff this is an #if-like directive block."""
1034 """Return True iff this is an #endif directive block."""
1102 """Dump the current block with warnings."""
1130 """Generate the representation of a given block."""
1146 """Generate the string representation of a given block."""
1213 print '### BLOCK %d ###' % i
1335 # We're going to parse the next tokens of the same block
1360 # does not end on the current block (e.g. with
1380 blocks2.append(Block(b.tokens[first:i]))
1388 blocks2.append(Block(b.tokens[first:i]))
1440 """Initialize a block parser.
1513 blocks.append(Block(buf))
1547 blocks.append(Block(ret, directive=directive,
1552 blocks.append(Block(ret[2:], directive=directive,
1557 blocks.append(Block(buf))
1562 blocks.append(Block(ret[2:], directive=directive,
1567 blocks.append(Block(buf))
1575 blocks.append(Block(buf))
1586 blocks.append(Block(buf))