GF compiler and PGF library source code browser
Here is the hyperlinked source code for the modules that are part of the main
GF executable.
- There is one page per module in the source code.
- Every module name is link to the page for that module.
- For each module there is a list of links to modules that import the
module.
- Every identifier is linked to it's definition.
- Syntax highlighting assigns different colors to identifiers, keywords,
type constructors, data constructors, operators, literals and comments.
(Other tools that only do lexical highlighting don't distinguish between
type constructors and data constructors.)
- In modules where C preprocessor is used, the browser
shows what the code looks like after it has been preprocessed.
These pages where generated as a quick experiment, using the
Programatica
Haskell Tools. Some modules
had to be modified to eliminate Haskell extensions not supported by the tools,
e.g. bang patterns and pattern guards.
Modules by directory
Directory dist/build/autogen - supporting definitions generated by Cabal.
- DarcsVersion_gf
Directory src/binary/Data
- Data.Binary
Directory src/binary/Data/Binary
- Data.Binary.Builder
- Data.Binary.Get
- Data.Binary.IEEE754
- Data.Binary.Put
Directory src/compiler - Main directory for the GF grammar compiler library
- GF
Directory src/compiler/GF - GF grammar compiler and shell modules
- GF.Compile
- GF.CompileInParallel
- GF.CompileOne
- GF.Compiler
- GF.Grammar
- GF.Interactive
- GF.Main
- GF.Quiz
- GF.Server
Directory src/compiler/GF/Command
- GF.Command.Abstract
- GF.Command.Commands
- GF.Command.Importing
- GF.Command.Interpreter
- GF.Command.Messages
- GF.Command.Parse
- GF.Command.TreeOperations
Directory src/compiler/GF/Compile
- GF.Compile.CFGtoPGF
- GF.Compile.CheckGrammar
- GF.Compile.ConcreteToHaskell
- GF.Compile.ExampleBased
- GF.Compile.Export
- GF.Compile.GenerateBC
- GF.Compile.GeneratePMCFG
- GF.Compile.GetGrammar
- GF.Compile.GrammarToPGF
- GF.Compile.Multi
- GF.Compile.Optimize
- GF.Compile.PGFtoHaskell
- GF.Compile.PGFtoJS
- GF.Compile.PGFtoLProlog
- GF.Compile.PGFtoProlog
- GF.Compile.PGFtoPython
- GF.Compile.ReadFiles
- GF.Compile.Rename
- GF.Compile.SubExOpt
- GF.Compile.Tags
- GF.Compile.ToAPI
- GF.Compile.Update
Directory src/compiler/GF/Compile/Compute
- GF.Compile.Compute.ConcreteNew
- GF.Compile.Compute.ConcreteNew1
- GF.Compile.Compute.Predef
- GF.Compile.Compute.Value
Directory src/compiler/GF/Compile/TypeCheck
- GF.Compile.TypeCheck.Abstract
- GF.Compile.TypeCheck.ConcreteNew
- GF.Compile.TypeCheck.Primitives
- GF.Compile.TypeCheck.RConcrete
- GF.Compile.TypeCheck.TC
Directory src/compiler/GF/Data
- GF.Data.BacktrackM
- GF.Data.ErrM
- GF.Data.Graph
- GF.Data.Graphviz
- GF.Data.Operations
- GF.Data.Relation
- GF.Data.Str
- GF.Data.Utilities
- GF.Data.XML
Directory src/compiler/GF/Grammar
- GF.Grammar.Analyse
- GF.Grammar.Binary
- GF.Grammar.CFG
- GF.Grammar.EBNF
- GF.Grammar.Grammar
- GF.Grammar.Lexer
- GF.Grammar.Lockfield
- GF.Grammar.Lookup
- GF.Grammar.Macros
- GF.Grammar.MMacros
- GF.Grammar.Parser
- GF.Grammar.PatternMatch
- GF.Grammar.Predef
- GF.Grammar.Printer
- GF.Grammar.ShowTerm
- GF.Grammar.Unify
- GF.Grammar.Values
Directory src/compiler/GF/Infra
- GF.Infra.BuildInfo
- GF.Infra.CheckM
- GF.Infra.Concurrency
- GF.Infra.Dependencies
- GF.Infra.GetOpt
- GF.Infra.Ident
- GF.Infra.Location
- GF.Infra.Option
- GF.Infra.SIO
- GF.Infra.UseIO
Directory src/compiler/GF/JavaScript
- GF.JavaScript.AbsJS
- GF.JavaScript.PrintJS
Directory src/compiler/GF/Speech
- GF.Speech.CFGToFA
- GF.Speech.FiniteState
- GF.Speech.GSL
- GF.Speech.JSGF
- GF.Speech.PGFToCFG
- GF.Speech.PrRegExp
- GF.Speech.RegExp
- GF.Speech.SISR
- GF.Speech.SLF
- GF.Speech.SRG
- GF.Speech.SRGS_ABNF
- GF.Speech.SRGS_XML
- GF.Speech.VoiceXML
Directory src/compiler/GF/System
- GF.System.Catch
- GF.System.Console
- GF.System.Directory
- GF.System.NoSignal
- GF.System.Process
- GF.System.Signal
Directory src/compiler/GF/Text
- GF.Text.Clitics
- GF.Text.Coding
- GF.Text.Lexing
- GF.Text.Pretty
- GF.Text.Transliterations
Directory src/compiler/SimpleEditor
- SimpleEditor.Convert
- SimpleEditor.JSON
- SimpleEditor.Syntax
Directory src/example-based
- ExampleDemo
- ExampleService
Directory src/programs - Main module for the GF executable
- Main{-src/programs/gf-main.hs-}
Directory src/runtime/haskell - main directory for the PGF runtime library
- PGF
Directory src/runtime/haskell/PGF - PGF library modules
- PGF.Binary
- PGF.ByteCode
- PGF.CId
- PGF.Data
- PGF.Expr
- PGF.Forest
- PGF.Generate
- PGF.Internal
- PGF.Lexing
- PGF.Linearize
- PGF.Macros
- PGF.Morphology
- PGF.OldBinary
- PGF.Optimize
- PGF.Paraphrase
- PGF.Parse
- PGF.Printer
- PGF.Probabilistic
- PGF.Tokenizer
- PGF.Tree
- PGF.TrieMap
- PGF.Type
- PGF.TypeCheck
- PGF.Utilities
- PGF.VisualizeTree
Directory src/server - Main program and auxiliary modules for the PGF server
- Cache
- CGI
- CGIUtils
- PGFService
- RunHTTP
- URLEncoding
Directory src/server/transfer
- Fold
2015-03-03
Thomas Hallgren