cdiggins / myna-parser

Myna Parsing Library
https://cdiggins.github.io/myna-parser
MIT License
78 stars 15 forks source link

2 small mistakes in the sample code in readme.md #21

Open henry-luo opened 6 years ago

henry-luo commented 6 years ago

There are two small mistakes in the sample code in readme.md.

    var g = new function() 
    {
        var delimiter = ",";   // need to define delimiter first
        this.textdata   = m.notChar('\n\r"' + delimiter);    
        ...
    }
    console.log(parser(input));
  1. the variable delimiter is not defined;
  2. last line should be parser, not parse.