BNFC-2.9.2: A compiler front-end generator.
Safe HaskellNone
LanguageHaskell2010

BNFC.Backend.Latex

Synopsis

Documentation

makeLatex :: SharedOptions -> CF -> Backend Source #

Entry point: create .tex file and a Makefile to compile it.

makefile :: String -> String -> Doc Source #

Create a makefile for the given tex file

>>> makefile "myFile.tex" "Makefile"
all : myFile.pdf

myFile.pdf : myFile.tex
	pdflatex myFile.tex

clean :
	-rm myFile.pdf myFile.aux myFile.log

cleanall : clean
	-rm Makefile myFile.tex

cfToLatex :: String -> CF -> String Source #

Create content of .tex file.

three :: Monoid a => [a] -> [[a]] Source #

Group a list into blocks of 3 elements.