summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Main.hs
AgeCommit message (Collapse)Author
2022-08-24`gf --version` now prints the shared folder to be used by the RGLKrasimir Angelov
2022-05-18Always use UTF8 encoding in the gf executableAndreas Källberg
This fixes many of the "Invalid character" messages you can get on different platforms. This has helped both with a nix-installation that didn't have global locale set and with a windows installation.
2021-07-06Add import from command line invocation to command historyJohn J. Camilleri
Closes #64
2018-12-01GF.Main: leave the code page unchanged on WindowsThomas Hallgren
This should make it easier to use GF with UTF-8 in the Windows Console See https://groups.google.com/forum/#!topic/gf-dev/DCou6FDhCnU
2015-08-10gf -cshell: preliminary support for the C run-time system in the GF shellhallgren
Some C run-time functionality is now available in the GF shell, by starting GF with 'gf -cshell' or 'gf -crun'. Only limited functionality is available when running the shell in these modes: - You can only import .pgf files, not source files. - The -retain flag can not be used and the commands that require it to work are not available. - Only 18 of the 40 commands available in the usual shell have been implemented. The 'linearize' and 'parse' commands are the only ones that call the C run-time system, and they support only a limited set of options and flags. Use the 'help' commmands for details. - A new command 'generate_all', that calls PGF2.generateAll, has been added. Unfortuntaly, using it causes 'segmentation fault'. This is implemented by adding two new modules: GF.Command.Commands2 and GF.Interactive2. They are copied and modified versions of GF.Command.Commands and GF.Interactive, respectively. Code for unimplemented commands and other code that has not been adapted to the C run-time system has been left in place, but commented out, pending further work.
2014-10-20Some small documentation improvementshallgren
2014-10-16Turn the GF compiler into a library. Main program is now in src/programs/gf.hshallgren
The module src/compiler/GF.hs now serves as a prelimiary compiler API. It just exports a selection of functions and types from the compiler. Haddock documentation can be generated with cabal haddock --hyperlink-source Also bumbed the version number to 3.6.10.