parses [[]] correctly right now
did it wrong
finished S()