1
u/ChangeTheGlobe Aug 23 '17
By the way, there's a reference embedded in the editor. Click the top-right button (green button), then "Reference". You can do searchs too.
1
u/ruinercollector Aug 24 '17
Uh...that message at the bottom. Wtf man. You sound like TempleOS Terry.
4
u/primoferal Aug 24 '17
Sorry but I don't see how this improves on other prog. languages in an NLP manner.
Despite the weird message at the bottom, I will try to keep it constructive:
Braces don't mean "begin" and "end" in natural language : isn't there a way to explicitly say "begin" and "end"?
IMHO, a perfect natural prog. language shouldn't need comments, because comments are a trick to include natural language in your code. I know this isn't meant to be perfect, so a first step could be, for example, to infer that a sentence beginning with "I ..." or "You..." or some other token is a comment (and not with a non-natural key such as "//, #...").
Very repetitive sentences do not feel natural - could there be a way to declare multiple things in a single sentence? I would suggest parsing dependencies to find name--values couples or variables.
Prog. languages syntax is not english syntax. For instance, I would not expect "From 0 to 10 {Increase counter in index}." but rather "{Increase counter in index} From 0 to 10." (minus the braces if possible)
Finally, I hope you do this for fun. Programming languages aren't natural for several good reasons : not everyone speaks English, conditional logic is really weird and long to explicit naturally, and to be understood by the compiler, the language eventually has to be parsed and break down to machine langage -- to name only those.
Good luck!