# gmlpeg

gml graph language peg parser for C, C++ and javascript parsers

The gml.peg file can be used to generate a C, C++ gml graph parser using packcc at https://github.com/arithy/packcc

The gml.pegjs file can be used to generate a javascript gml graph parser using pegjs at https://pegjs.org/

The peg file is easy to edit and update if needed

The gmltest.html page is using the gml.pegjs javascript to check for valid gml graph data

[Click here to try the javascript GML graph language parser](https://graphviewer.nl/graphlet/gmlpeg/gmltest.html)
  
The t.gml file is a gml graph test file to use with gml.c and the Makefile

For gml graph layout see also Tulip software or gml4gtk graph viewer at https://github.com/gml4gtk/gml4gtk

This grammar is available as GNU GPL version 3+ Free software  
  
~~~
/*
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  These are the four essential freedoms with GNU GPL software:
 *  1: freedom to run the program, for any purpose
 *  2: freedom to study how the program works, and change it to make it do what you wish
 *  3: freedom to redistribute copies to help your Free Software friends
 *  4: freedom to distribute copies of your modified versions to your Free Software friends
 *   ,           ,
 *  /             \
 * ((__-^^-,-^^-__))
 * `-_---'  `---_-'
 *  `--|o`   'o|--'
 *      \  `  /
 *       ): :(
 *       :o_o:
 *        "-"
 *
 * SPDX-License-Identifier: GPL-3.0+
 * License-Filename: LICENSE
 */
~~~
  
![gplv3](gplv3.png)
  
SPDX-License-Identifier: GPL-3.0+  
License-Filename: LICENSE  

<span>🇳🇱</span>
  
