├── .gitignore ├── .npmignore ├── README.md ├── package.json ├── src ├── Node.ts ├── Nodes │ ├── BrNode.ts │ ├── DataNode.ts │ ├── EitherNode.ts │ ├── ElseNode.ts │ ├── ForNode.ts │ ├── IfNode.ts │ ├── MaybeNode.ts │ ├── OrNode.ts │ ├── RawTextNode.ts │ ├── RefNode.ts │ ├── SelectNode.ts │ ├── SentenceNode.ts │ ├── SpaceNode.ts │ ├── SpacefulNode.ts │ ├── SpacelessNode.ts │ ├── TextNode.ts │ ├── ThenNode.ts │ └── UnlessNode.ts ├── PhraseError.ts ├── RefableNode.ts ├── browser.ts ├── cli.ts ├── expressionStack.ts ├── factories.ts ├── index.ts ├── makeTerminus.ts ├── mapFilter.ts ├── peek.ts ├── purgeCommentNodes.ts ├── range.ts ├── test.ts ├── text.ts └── textSupport.ts ├── test ├── compiler.js ├── eval_data.js ├── eval_either.js ├── eval_if.js ├── eval_maybe.js ├── eval_ref.js ├── eval_select.js ├── eval_spaceful.js └── eval_spaceless.js └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/.npmignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/package.json -------------------------------------------------------------------------------- /src/Node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Node.ts -------------------------------------------------------------------------------- /src/Nodes/BrNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/BrNode.ts -------------------------------------------------------------------------------- /src/Nodes/DataNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/DataNode.ts -------------------------------------------------------------------------------- /src/Nodes/EitherNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/EitherNode.ts -------------------------------------------------------------------------------- /src/Nodes/ElseNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/ElseNode.ts -------------------------------------------------------------------------------- /src/Nodes/ForNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/ForNode.ts -------------------------------------------------------------------------------- /src/Nodes/IfNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/IfNode.ts -------------------------------------------------------------------------------- /src/Nodes/MaybeNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/MaybeNode.ts -------------------------------------------------------------------------------- /src/Nodes/OrNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/OrNode.ts -------------------------------------------------------------------------------- /src/Nodes/RawTextNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/RawTextNode.ts -------------------------------------------------------------------------------- /src/Nodes/RefNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/RefNode.ts -------------------------------------------------------------------------------- /src/Nodes/SelectNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/SelectNode.ts -------------------------------------------------------------------------------- /src/Nodes/SentenceNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/SentenceNode.ts -------------------------------------------------------------------------------- /src/Nodes/SpaceNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/SpaceNode.ts -------------------------------------------------------------------------------- /src/Nodes/SpacefulNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/SpacefulNode.ts -------------------------------------------------------------------------------- /src/Nodes/SpacelessNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/SpacelessNode.ts -------------------------------------------------------------------------------- /src/Nodes/TextNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/TextNode.ts -------------------------------------------------------------------------------- /src/Nodes/ThenNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/ThenNode.ts -------------------------------------------------------------------------------- /src/Nodes/UnlessNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/Nodes/UnlessNode.ts -------------------------------------------------------------------------------- /src/PhraseError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/PhraseError.ts -------------------------------------------------------------------------------- /src/RefableNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/RefableNode.ts -------------------------------------------------------------------------------- /src/browser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/browser.ts -------------------------------------------------------------------------------- /src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/cli.ts -------------------------------------------------------------------------------- /src/expressionStack.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/expressionStack.ts -------------------------------------------------------------------------------- /src/factories.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/factories.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/makeTerminus.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/makeTerminus.ts -------------------------------------------------------------------------------- /src/mapFilter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/mapFilter.ts -------------------------------------------------------------------------------- /src/peek.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/peek.ts -------------------------------------------------------------------------------- /src/purgeCommentNodes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/purgeCommentNodes.ts -------------------------------------------------------------------------------- /src/range.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/range.ts -------------------------------------------------------------------------------- /src/test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/test.ts -------------------------------------------------------------------------------- /src/text.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/text.ts -------------------------------------------------------------------------------- /src/textSupport.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/src/textSupport.ts -------------------------------------------------------------------------------- /test/compiler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/test/compiler.js -------------------------------------------------------------------------------- /test/eval_data.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/test/eval_data.js -------------------------------------------------------------------------------- /test/eval_either.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/test/eval_either.js -------------------------------------------------------------------------------- /test/eval_if.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/test/eval_if.js -------------------------------------------------------------------------------- /test/eval_maybe.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/test/eval_maybe.js -------------------------------------------------------------------------------- /test/eval_ref.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/test/eval_ref.js -------------------------------------------------------------------------------- /test/eval_select.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/test/eval_select.js -------------------------------------------------------------------------------- /test/eval_spaceful.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/test/eval_spaceful.js -------------------------------------------------------------------------------- /test/eval_spaceless.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/test/eval_spaceless.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omranjamal/PhraseEngine/HEAD/tsconfig.json --------------------------------------------------------------------------------