Would be interesting to get a bunch of people to read out loud various programs in various languages and in pseudocode and hammer down what might be the most natural way to do spoken programming.
Would be interesting to get a bunch of people to read out loud various programs in various languages and in pseudocode and hammer down what might be the most natural way to do spoken programming.
But you still do need to replace all sorts of brackets, like any language. At the moment I've got:
"bracket" == (
"brace" == {
"index" == [
(And "end $x" for the other side of it.)
Clearly not ideal, but works well enough for now, certainly a lot less painful than trying to maintain indentation in Python with voice only. (com select 20 lines upwards, reverse tab... Followed by swearing as it tabs instead of untabs.)
( parentheses (parens), alt. round bracket
{ brace, alt. curly bracket
[ bracket, alt. square bracket
The biggest confusion is between bracket and parentheses, in that people will use bracket to mean both. If I think there might be confusion I use the alternatives as they seem to remove all ambiguity.
1. Try to mimic english grammar. For this, Attempto controlled english (http://attempto.ifi.uzh.ch/site/) is something to review.
2. Go simpler and reduce grammar as much as possible. Prolog would be a good fit, as a program is just a set of Horn clauses.