This is a basic English lexicon for talking about things in programming. It seems to get quite large as I think of more and more words to add to it, and I'm not sure if it's too big for the prototype to handle. For the grammar we can modify the simple English grammar in PAIP.
nouns:
function, program, procedure
number, integer, real
memory, variable, pointer, constant, value, content
data, structure, input, output
list, queue, tree, stack, node, link
loop, iteration
verbs:
add, subtract, multiply, divide
increase, decrease, increment, decrement
move, link, compare
create, delete, update, change, fix, set, assign
open, close, enter, exit
input, output
adjectives:
free, open, closed
fast, slow, simple, complex, hard, easy
big, small, long, short, deep, shallow, broad, narrow
propositions:
on, by, to, in, of, for, with, within, without, against
conjunctions:
if, then, while, for
and, or, not
pronouns, etc:
I, you, he, she, it, they, them, him, his, her, mine, yours
who, what, where, when, how
please, okay, thanks, bye!
seems like a good list of concepts - all of which can be "grounded" into a logic knowledgebase
ReplyDelete