Declaration->statement statement order check

TODO: Make more checks instead of "syntax error"