Skip to content

Commit

Permalink
Merge pull request #20 from Bridgeconn/dev
Browse files Browse the repository at this point in the history
enable client-side use
  • Loading branch information
joelthe1 authored May 22, 2019
2 parents 60c180e + 80ee4cc commit 0a05019
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 6 deletions.
62 changes: 62 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env


USX-USFM grammr comparison.md
server.js
3 changes: 2 additions & 1 deletion grammarOperations.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const join = require('path').join
const Events = require('events');
const emitter = new Events.EventEmitter();

var contents = fs.readFileSync(join(__dirname, 'usfm.ohm'))
// var contents = fs.readFileSync(join(__dirname, 'usfm.ohm'))
var contents = require('./usfm.ohm.js').contents

var bib = ohm.grammars(contents).usfmBible

Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "usfm-grammar",
"description": "A simple usfm parser/validator that uses a grammar to model the usfm syntax. The grammar is written in ohm-js(https://ohmlang.github.io/). The USFM3.0 syntax is supported. The parser outputs the USFM content in a json structure which gives importance to the easy extraction of scripture content from the mark-ups and additional usfm contents.",
"version": "0.1.2",
"version": "1.0.0",
"main": "parser.js",
"scripts": {
"test": "mocha",
Expand All @@ -14,13 +14,20 @@
},
"repository": {
"type": "git",
"url": "https://github.com/Bridgeconn/usfm-grammar"
"url": "ssh://git@github.com/Bridgeconn/usfm-grammar.git"
},
"keywords": ["usfm", "mark-up", "parser", "ohm", "syntax validator", "json"],
"keywords": [
"usfm",
"mark-up",
"parser",
"ohm",
"syntax validator",
"json"
],
"author": "Bridge Connectivity Solutions <[email protected]> (https://github.com/Bridgeconn)",
"license": "GNU General Public License v3.0",
"bugs": {
"url": "https://github.com/Bridgeconn/usfm-grammar/issues"
"url": "https://github.com/Bridgeconn/usfm-grammar/issues"
},
"homepage": "https://github.com/Bridgeconn/usfm-grammar"
}
1 change: 1 addition & 0 deletions usfm.ohm.js

Large diffs are not rendered by default.

0 comments on commit 0a05019

Please sign in to comment.