Syntactically it’s quite a bit better than an N-gram markov chain: it gets indentation exactly right, it balances parentheses, braces, and comment start/end markers, delimits strings with quotation marks, and so on. You’re right that it’s no better than a markov chain at understanding the “code” it’s producing, at least at the level a human programmer does.
Syntactically it’s quite a bit better than an N-gram markov chain: it gets indentation exactly right, it balances parentheses, braces, and comment start/end markers, delimits strings with quotation marks, and so on. You’re right that it’s no better than a markov chain at understanding the “code” it’s producing, at least at the level a human programmer does.