1
Fork 0

add source to haddock, few doc notes, tweak website build

This commit is contained in:
Jake Wheat 2019-09-21 09:18:27 +01:00
parent a55694abff
commit ac66ede538
4 changed files with 9 additions and 9 deletions

View file

@ -49,6 +49,9 @@ Data types to represent different dialect options
> -- In the code, all special syntax which looks identical to regular
> -- identifiers or function calls (apart from the name), is treated
> -- like a regular identifier or function call.
> --
> -- It's easy to break the parser by removing the wrong words from
> -- the keywords list or adding the wrong words to the other lists.
>
> data Dialect = Dialect
> { -- | reserved keywords

View file

@ -1,6 +1,5 @@
0.6.0
checked with ghc 8.8.1 - but because of pretty-show, the
executable doesn't work with this ghc yet
tested with ghc 8.8.1 also
change the dialect handling - now a dialect is a bunch of flags
plus a keyword list, and custom dialects are now feasible
(still incomplete)

View file

@ -391,5 +391,3 @@ request.
There is a related tutorial on implementing a SQL parser here:
http://jakewheat.github.io/intro_to_parsing/

View file

@ -14,15 +14,15 @@ cp website/main.css build
cp website/ocean.css build
# index
asciidoctor website/index.asciidoc -o - | cabal -v0 exec runhaskell website/AddLinks.lhs > build/index.html
asciidoctor website/index.asciidoc -o - | cabal -v0 v2-exec runhaskell website/AddLinks.lhs > build/index.html
asciidoctor website/supported_sql.asciidoc -o - | cabal -v0 exec runhaskell website/AddLinks.lhs > build/supported_sql.html
asciidoctor website/supported_sql.asciidoc -o - | cabal -v0 v2-exec runhaskell website/AddLinks.lhs > build/supported_sql.html
# tpch sql file
# pandoc src/tpch.sql -s --highlight-style kate -o tpch.sql.html
# rendered test cases
# build the parserexe target first to fix the package database
cabal -v0 exec runhaskell -- --ghc-arg=-package=pretty-show -itools website/RenderTestCases.lhs > build/test_cases.asciidoc
cabal -v0 v2-exec runhaskell -- --ghc-arg=-package=pretty-show -itools website/RenderTestCases.lhs > build/test_cases.asciidoc
asciidoctor build/test_cases.asciidoc -o - | \
sed -e "s/max-width:62\.5em//g" \
@ -34,7 +34,7 @@ asciidoctor build/test_cases.asciidoc -o - | \
rm build/test_cases.asciidoc
# haddock
cabal v2-haddock
cabal v2-haddock --haddock-option="--hyperlinked-source"
rm -Rf build/haddock
mkdir build/haddock/