@munezero/floparser v1.3.7
Flogram Compiler and Parser
Flogram is a programming language designed to help AI write less error-prone code.
Installation
To use the Flogram npm package, run the command below:
npm install flogramUsage
After you have installed the package, there are a couple of things to do to compile your Flogram code:
Import runner function
Import the runner function from the package like so:
import { runner } from 'flogram';Call runner with necessary paramaters
runner takes two arguments, value, the code to be run, and outputElement, which is a HTML element where the draw values will be printed.
const { result, failures} = await runner({ value : value, outputElement: outputElement });Keep in mind
valueis a string, the code you are looking forward to executing.outputElementis a necessary valid HTML element if you want to see the ouput on your screen, or else, it will be on the console.- The
runnerwill always be looking for themainfunction to execute your code. - The
resultfrom runner is the value that might have been returned by the main function after execution. resultis an optional value depending on whether our code executed well, or your main function has a return value.failuresis an array, it will be empty if there were no issues with your code.
Happy Flogram-ming!
8 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago