First attempt at table detection and scoping.

It looks like the syntax rules work and extend to the end of the line. More tests will be needed.