 fs = require 'fs'
+p = require 'path'
 
 sourceLinesCounter = (path) ->
     

    counter

extConfig = 
    '.js': 
        wordsReg: /\w/
        inlineCommentReg: /^\s*\/\//
        blockCommentStartReg: /\s*(\S*)\s*(\/\*)\s*/
        blockCommentEndReg: /(\*\/)\s*(\w)*\s*$/
    '.java':
        wordsReg: /\w/
        inlineCommentReg: /^\s*\/\//
        blockCommentStartReg: /\s*(\S*)\s*(\/\*)\s*/
        blockCommentEndReg: /(\*\/)\s*(\w)*\s*$/
    '.css':
        wordsReg: /\w/
        inlineCommentReg: /^\s*\/\//
        blockCommentStartReg: /\s*(\S*)\s*(\/\*)\s*/
        blockCommentEndReg: /(\*\/)\s*(\w)*\s*$/
    '.coffee':
        wordsReg: /\w/
        inlineCommentReg: /^\s*\/\//
        blockCommentStartReg: /\s*(\S*)\s*(\/\*)\s*/
        blockCommentEndReg: /(\*\/)\s*(\w)*\s*$/
    '.html':
        wordsReg: /\w/
        inlineCommentReg: /^\s*\/\//
        blockCommentStartReg: /\s*(\S*)\s*(<!--)\s*/

        'can not read :' + path + e

    # check type
    ext = p.extname path
    type = ext if ext isnt null
    type = 'js' if not extConfig[type]

    lines = content.split '\n'
    counter = 0
