-
Notifications
You must be signed in to change notification settings - Fork 2
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
c924e89
commit 41a7787
Showing
10 changed files
with
41 additions
and
29 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,20 +1,7 @@ | ||
# ERML - Entity-Relationship Markup Language | ||
|
||
ERML is a super easy-to-write DSL that represents conceptual data models using the Entity-Relationship modeling concepts. | ||
What does that gibberish mean? read the [docs](https://erml.netlify.app/) | ||
ERML is a super easy-to-write DSL for representing conceptual data models via the Entity-Relationship modeling concepts. | ||
|
||
# Installation and Usage | ||
You write ERML code (defined [here](https://erml.netlify.app/)) to represent your Entity-Relationship diagram, and the [ERML Parser](https://github.com/obadakhalili/ERML/tree/main/packages/parser) parses it into an AST, from there, an application can take the resulted AST and build all sorts of things with it, such as an [ERD Visualizer](https://github.com/obadakhalili/ERML/tree/main/packages/visualizer). | ||
|
||
You can install the ERML parser from [NPM](http://npmjs.org/package/erml) or [yarn](https://classic.yarnpkg.com/en/package/erml) via the commands | ||
|
||
```sh | ||
npm install erml # From NPM | ||
yarn add erml # From yarn | ||
``` | ||
|
||
After that all you have to do is to execute the parser function exported by the library | ||
|
||
```js | ||
const ERMLParser = require("erml") | ||
const ast = ERMLParser(`ENTITY Example_entity { SIMPLE "attribute_name" }`) | ||
``` | ||
For more detailed info on where the project is heading, check out the project's roadmap [here](https://github.com/obadakhalili/ERML/issues/4). |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ERML Parser | ||
|
||
Converts ERML code into an AST. | ||
|
||
# Installation and Usage | ||
|
||
You can install the ERML parser from [NPM](http://npmjs.org/package/@erml/parser) or [yarn](https://classic.yarnpkg.com/en/package/@erml/parser) via the commands | ||
|
||
```sh | ||
npm install @erml/parser | ||
yarn add @erml/parser | ||
``` | ||
|
||
After that, all you have to do is to execute the parsing function exported by the library | ||
|
||
```js | ||
const ERMLParser = require("@erml/parser") | ||
const ast = ERMLParser(`ENTITY Example_entity { SIMPLE "attribute_name" }`) | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# ERML Visualizer | ||
|
||
ERD Visualizer that converts ERML code into SVG drawings. [Check it out](https://erml-visualizer.netlify.app/). | ||
|
||
[![erml-visualizer-demo.gif](https://s9.gifyu.com/images/erml-visualizer-demo.gif)](https://gifyu.com/image/JNy1) |
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
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
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