summaryrefslogtreecommitdiff
path: root/source/Api.hs
diff options
context:
space:
mode:
authorSimon-Kor <52245124+Simon-Kor@users.noreply.github.com>2024-08-24 19:30:46 +0200
committerSimon-Kor <52245124+Simon-Kor@users.noreply.github.com>2024-08-24 19:30:46 +0200
commitce03d33eaa7e9d37935f225d48459223a4004a50 (patch)
treeb2d0aa32acbf1b4574cbbe613dbfa88d79c45e76 /source/Api.hs
parent32424a1efbd774e6beb06212dbaec6e55e92fcd5 (diff)
First atemped to write a new way of local function defintion
Diffstat (limited to 'source/Api.hs')
-rw-r--r--source/Api.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/Api.hs b/source/Api.hs
index 3fb0ca2..1bdf615 100644
--- a/source/Api.hs
+++ b/source/Api.hs
@@ -203,7 +203,9 @@ describeToken = \case
EndEnv _ -> "end of environment"
_ -> "delimiter"
-
+-- | gloss generates internal represantation of the LaTeX files.
+-- First the file will be parsed and therefore checkt for grammer.
+-- 'meaning' then transfer the raw parsed grammer to the internal semantics.
gloss :: MonadIO io => FilePath -> io ([Internal.Block], Lexicon)
gloss file = do
(blocks, lexicon) <- parse file