This is a library that provides an abstract ForTheL lexer that is independent of concrete character encodings, position types, syntax highlighting specifications etc. and can thus be used as a generic basis for a wide range of ForTheL parsing frameworks.
-
-
If you already have a file called
cabal.project
in your project directory, addhttps://github.com/McEarl/ftlex/archive/refs/tags/v0.3.4.tar.gz
topackages
there. -
Otherwise, create a new file
cabal.project
that contains the following lines:packages: ./*.cabal https://github.com/McEarl/ftlex/archive/refs/tags/v0.3.4.tar.gz
-
-
Add
ftlex
tobuild-depends
in your<package name>.cabal
.
-
Add
https://github.com/McEarl/ftlex/archive/refs/tags/v0.3.4.tar.gz
toextra-deps
in yourstack.yaml
. -
Add
ftlex
todependencies
in yourpackage.yaml
.
To run the test suites of this package, execute the following commands:
cabal configure --enable-tests
cabal build
cabal test --test-options="<path to ForTheL file>" --test-show-details=direct
(Note: The option --test-show-details=direct
is necessary to allow user
interaction during a test run.)
To generate a tarball of this package – which will be located at
dist-newstyle/sdist/ftlex-0.3.4.tar.gz
– simply execute the following command:
cabal sdist