Last active
February 25, 2016 16:50
-
-
Save udoprog/3ca9d338176fa38e5300 to your computer and use it in GitHub Desktop.
Failing enum-based API Blueprint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { code: 1, | |
| message: 'parser exception: \'mismatched adapter and node type\'', | |
| location: [] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var protagonist = require('protagonist'); | |
| test = ( | |
| "# Data Structures\n" + | |
| "## TimeUnit (enum[string])\n" + | |
| "+ Members\n" + | |
| " + `hello`" | |
| ); | |
| protagonist.parse(test, function(error, result) { | |
| if (error) { | |
| console.log(error); | |
| return; | |
| } | |
| console.log(result); | |
| }); |
zdne
commented
Feb 25, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment