https://github.com/cvette/fcl-parser
A parser for the Fuzzy Control Language (FCL) in JavaScript (node.js).
https://github.com/cvette/fcl-parser
Last synced: 25 days ago
JSON representation
A parser for the Fuzzy Control Language (FCL) in JavaScript (node.js).
- Host: GitHub
- URL: https://github.com/cvette/fcl-parser
- Owner: cvette
- License: mit
- Created: 2014-04-19T00:08:19.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-09T16:50:42.000Z (over 10 years ago)
- Last Synced: 2025-02-17T12:25:21.060Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 449 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
FCL - Parser
--------
A parser for the Fuzzy Control Language (FCL) standardized by IEC 61131-7. FCL is a domain-specific programming language for fuzzy logic.###TODO
* Testing###Install
There is no official release, yet. You can install it via this git repository for now:```
npm install git+http://github.com/cvette/FCL-Parser.git
```###Usage
The parser can either be used directly in JavaScript or via the command line interface.####JavaScript
Parses the specified input and creates an abstract syntax tree (AST).
```javascript
var fcl = require("fcl-parser").Parser();
var result = fcl.parse("");
```####Command Line Interface
Parses the input and writes the AST to a JSON file.
```
Usage: fcl-parser [options]Options:
-h, --help output usage information
-V, --version output the version number
-o, --outputFile [value] JSON output file
-d, --debug debug messages
```