title: Flex: easy way to see if a line has any content?
body: <p>Among many rules in my Altair BASIC Flex file is this one:</p>
  
  <pre><code>[\n]
  {
      ++num_lines;
      ++num_statements;
      return '\n';
  }
  </code></pre>
  
  <p><code>++statements;</code> is not actually correct - in theory the line might be empty (due to bad data in the .BAS file for instance) and thus not have any statements on that line. So is there any way to know if there's any tokens in front of the \n since the last \n? I know you can do this with the BEGIN() et all, but that seems like a LOT of work for a simple problem! Is there an easier way?</p>