masala-parser
                                
                                
                                
                                    masala-parser copied to clipboard
                            
                            
                            
                        Javascript Generalized Parser Combinators
Why reinvent the wheel ? ```js // Using existing http rule myParser.then(F.regexp(/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/)) ``` Obviously, it will be difficult in many cases, but it may work for simple cases.
It could be used instead of `Parser.debug()`. It can be used accross Genlex to help its debugging (#118) It must not impact performances when logs are not used, so either...
Discussion on documentation issues (outdated, bad typescript interface...)
Upgrade with expected troubles from babel-istanbul
We should be able to count lines at some moment
Cover tool will run it ultra slow ```js 'expect complex calcul to true and lightening fast': function (test) { const calculus = '3 +2*4 -((2*45-78)*2*(6*(9-8)+3*(2-5) ))'; let time = new...
By definition, a `parser` takes a text - or `character stream` - as `input`, and returns a structured object. The `stream` will describe how the `input` is eaten by the...
Writing a definition file embedded in the package, implementing the @types system: https://blog.angular-university.io/typescript-2-type-system-how-do-type-definitions-work-in-npm-when-to-use-types-and-why-what-are-compiler-opt-in-types/
Emoji is not compatible with Javascript characters, which are utf-16 sequences. Some emojis just take two JS characters, for what I have understood. https://stackoverflow.com/a/22315491/968988 https://medium.com/reactnative/emojis-in-javascript-f693d0eb79fb (note that regexp here is...