It's funny how close your example are to S-expressions, just replace the pointy brackets with round parenthesis and move the closing one to the end:
(table
(tr
(td one)
(td two)
(td three))
(tr
(td another table)
(td with more stuff)))