fglm is a command line tool to analyze 4GL source code.
Syntax
fglm [options] passes
Example:
Possible options:
Option | Meaning | Notes |
--help, -h |
help message |
[boolean] |
--encoding, -e |
input file encoding |
[string] |
--prettyIndent |
input file encoding |
[default: 2] |
--prettyTabs |
inject tabs instead of spaces for indent |
[boolean] |
--prettyCols |
number of columns to fit the code to |
[default: 80] |
--keepNewLines |
number of new lines to save from sources |
[default: 2] |
--root, -r |
project's root folder |
[default: "."] |
--pattern, -p |
glob to search files from root |
[default: "**/*.4gl"] |
--ignore | pattern to exclude from matches | |
--debug | run transforms in debug mode, with more diagnostics information | [boolean] |
--renameInFunc | a function where to rename variable for rename pass | |
--renameFrom | variable name to rename | |
--renameTo | new variable name | |
--kwCases | change cases of keywoards (up|down) | |
--idCases | change cases of identifiers (up|down) | |
--sqliteDB | path to SQLite DB file | [default: "temp.db"] |
--dumpPerFile | makes .sql file for each .4gl file | [boolean] |
--dumpCSV | dumps data to CSV files for each table | [boolean] |
--dumpSQL | dumps data into SQL file for all files | |
--targetDir | Path for output of the .html files | [default: "4gl_Analyzer_Results"] |
--depth | Graphs depth | [default: 3] |
--console | Console option for LyciaStudio | |
--processHTML | Start from 5 step based on created db | |
--graphviz-dir | raphviz directory - executables for the images generation of the functions call graph | |
--dumpSqlSelects | Dump select queries, performed during build process of the functions graph, into graph-build-selects.sql | [boolean] |
Available analyzing passes:
Available transform passes: