-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46b2df9
commit 5f7c6e0
Showing
14 changed files
with
6,401 additions
and
1,781 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains 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
Submodule include
updated
3 files
+1 −1 | anitomy/keyword.cpp | |
+9 −6 | anitomy/parser_number.cpp | |
+27 −0 | test/data.json |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<input type="text" id="demo-input" name="demo-input" style="width: 91%"> | ||
<button id="demo-parse">Parse!</button> | ||
<pre id="demo-preview"> | ||
// preview | ||
</pre> | ||
<script type="module"> | ||
import anitomyscript from './index.js' | ||
const input = document.getElementById('demo-input') | ||
const button = document.getElementById('demo-parse') | ||
const preview = document.getElementById('demo-preview') | ||
input.onkeypress = function (e) { | ||
if (e.keyCode == 13) { | ||
button.click() | ||
} | ||
} | ||
button.onclick = function () { | ||
anitomyscript(input.value).then(function (parsed) { | ||
preview.innerText = JSON.stringify(parsed, null, 2) | ||
}).catch(function (err) { | ||
preview.innerText = err.message | ||
}) | ||
} | ||
</script> |
This file contains 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
This file contains 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
Oops, something went wrong.