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: 11 months 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 (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-12-09T16:50:42.000Z (over 11 years ago)
- Last Synced: 2025-05-15T16:15:01.793Z (about 1 year 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
```