According to Paul Graham (http://www.paulgraham.com/arcchallenge.html):
The most meaningful test of the length of a program is not lines or
characters but the size of the codetree-- the tree you'd need to represent
the source. The Arc example has a codetree of 23 nodes: 15 leaves/tokens
+ 8 interior nodes. How long is it in your favorite language?
So instead of measuring lines of code, you measure the size of the AST. Works well for Lisp, at least; not sure how well it generalizes to other languages.