QSPFoundation / Qsp.FSharp

QSP ecosystem written in F# environment. Contains: language core (AST, parser, printer), language server (LSP) and CLI utility for manipulating language sources.
4 stars 1 forks source link

feat(cli): add the number of statements per line statistics #42

Open gretmn102 opened 2 months ago

gretmn102 commented 2 months ago

Solution

The user starts the utility with the following parameters:

qsp-toolbox inline-statements game.qsps

And the program counting the number of statements per line in all game.

The calculation goes like this:

For example, the following line is given:

a = 4 & if 4 = 1: test

Counts as 3 statements:

  1. a = 4
  2. if ... : ...
  3. test