This is a hard to explain question, but if someone found this board through stackoverflow (I guess that happened to many of us) he/she will understand better what I'm asking (moreover if once you had to make a compiler). Is there a list with all the valid Japanese syntactic structures? (well, I guess translators have to work with that, so it has to exist?)
For example, one structure ("rule") would be subject-wa-object-verb . And this would be useful to check if you are writting or saying rightly any sentence when you have doubts.
For example, a common question is, where can I add a word that refers to time? is there only one place? (today, yesterday, tomorrow, etc.). What are the rules that prevent me from doing so? I.e. What is the set of syntax rules that inform me if a particular modification to the sentence is valid?
I know real languages are more complex than programming languages but yet maybe all these set of rules can be written and someone did.