summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-05-06fixed problems in persian transliteration pointed out by Elnazaarne
2011-05-02transliteration via configuration file: ps -to=file or ps -from=fileaarne
2011-04-20Ctrl-C shouldn't terminate the GF shellhallgren
This quick fix should make Ctrl-C in the GF shell behave more like it does in other shells: even if no command is running, Ctrl-C now just gives you a new prompt instead of terminating the shell.
2011-04-15GFI.hs: some refactoring for readabilityhallgren
Also some minor changes in how Ctrl-C is handled and how CPU time is measured.
2011-04-13gfse: use "gf -server" mode instead of upload.cgihallgren
Work in progress on making the online grammar editor use the new "gf -server" mode instead of the old upload.cgi script. A first benefit is that the editor now calls the server to check the syntax of lin & lincat definitions. (But the links to minibar/gfshell/quiz are not available at the moment.)
2011-04-13Added a preliminary "gf -server" mode.hallgren
The command "gf -server" now starts a simple HTTP server on port 41295, providing a simple web API to the GF compiler. It currently support the follwing operations: * creating new temporary directories for grammar uploads, * uploading grammars files for use in the GF shell, * executing GF shell commands, and * accessing static files. This means that GF now depends on some additional networking related packages, but they should be available and easy to install on all platforms. There is also a new configuration flag "server" in gf.cabal, so GF will be compiled without support for server mode if the extra packages are unavailable. Note that running gf -server while connected to the internet can be a security risk. To prevent unauthorized access to the rest of the system, it is advisable to run the server in GF_RESTRICTED mode and as a user with suitably restricted file permissions.
2011-04-13Show configuration options as part of build infohallgren
The GF shell welcome message will now include something like This is GF version 3.2.1-darcs. Built on darwin/i386 with ghc-7.0, flags: interrupt where a list of enabled configuration flags are included on the last line. This is implemented in GF.Infra.BuildInfo by consulting the CPP macros defined by the respective option in gf.cabal. For this to work, GF.Infra.BuildInfo obviously has to be updated when new flags are added to gf.cabal or if the CPP macros are renamed. (Also, I suspect that if you reconfigure with different flags and rebuild GF without cleaning first, the BuildInfo module will not be recompiled, resulting in a misleading welcome message...)
2011-04-13GF.Infra.UseIO: add functions readBinaryFile & writeBinaryFilehallgren
2011-04-11minibar: fix typohallgren
2011-04-11minibar: small documentation updates and correctionshallgren
2011-04-08GF shell restricted mode: found one more writeFile that should be restrictedhallgren
2011-04-06avoid warning from ghc-7.0hallgren
Warning: -fglasgow-exts is deprecated: Use individual extensions instead
2011-04-06avoid warning from ghc-7.0hallgren
Warning: -fglasgow-exts is deprecated: Use individual extensions instead
2011-04-06generate Eq instance for GADTaarne
2011-04-06fixed the printing of predefined and list categories in haskell=gadtaarne
2011-04-04GFI.hs: refactoring to add a function for executing a single GF shell command.hallgren
The intention is to use the new function to implement a web service API to the GF shell.
2011-04-04Add build info to the GF shell welcome messagehallgren
2011-03-28gfse: somewhat simplified configuration/installationhallgren
2011-03-28gfse: added an alternate style sheet with the MOLTO color schemehallgren
2011-03-22minibar: don't force focus to the typed input field after every wordhallgren
On touch-based devices, the on-screen keyboard kept popping up after every word, which was very annoying if you were entering a sentence by tapping on the magnets.
2011-03-22minibar: add trailing slash in suggested grammar URLshallgren
2011-03-17Adding a missing file for the tokenizer...gdetrez
2011-02-10Adding a basic lexicon-based tokenizer and the asociated command in gf shellgdetrez
2010-12-11Adding an option to the gf compiler to add an index to pgf filesgdetrez
This is gonna be used by the android library to skip unused part of a pgf file
2011-03-12make it possible to override opers defined in an interface by syntax ↵aarne
'instance Foo of Bar - [f,g,h]'
2011-03-12make later flags take priority over earlier ones in PGF generation aarne
2011-03-12generalized pt -transfer so that it goes into subtrees (naive implementation ↵aarne
in TreeOperations; using PGF.Expr.match would be better); example given in 'h pt'
2011-03-09gfse: documentation fixes, links to MOLTO meeting slides and compiler API ↵hallgren
document
2011-03-08fix the grammar browser in the editorkrasimir
2011-03-07the user can now upload their own grammars in the editorkrasimir
2011-03-07gfse: create a new concrete syntax by copying an existing onehallgren
When adding a new concrete syntax to a grammar, the currently open concrete syntax will be copied. If the abstract syntax is currently open, the new concrete syntax will start out empty.
2011-03-07gfse: link back to the editor from the upload pagehallgren
2011-03-06gfse: minor layout/formatting variationhallgren
2011-03-05added composOp generation to haskell-gadt, and an example in ↵aarne
examples/gadt-transfer
2011-03-04switched the upper and lower parts of lexc entries to their standard orderaarne
2011-03-04revived GADT generationaarne
2011-03-04fixed a variable refreshing bug in the compileraarne
2011-03-03minibar: add icon for word alignment buttonhallgren
2011-03-03minibar: add a button to display word alignmenthallgren
2011-03-03GF shell restricted modehallgren
By setting the environment variable GF_RESTRICTED before starting GF, the shell will be run in restricted mode. This will prevent the GF shell from starting arbitrary system commands (most uses of System.Cmd.system are blocked) and writing arbitrary files (most commands that use writeFile et al are blocked). Restricted mode is intended minimize the potential security risks involved in allowing public access to the GF shell over the internet. It should be used in conjuction with system level protection mechanisms (e.g. file permissions) to make sure that a publicly acessible GF shell does not give access to parts of the system that should not be publicly accessible.
2011-03-03overloaded opers included in sorting of judgementsaarne
2011-03-03print lexicon in Xerox LEXC format: pg -lexcaarne
2011-03-01corrected help for l commandaarne
2011-03-01minibar/support.js: recognize relative URLs as locations on the same serverhallgren
This means that the relative grammar directory location in the default configuration will result in AJAX requests rather than the less efficient JSONP requests.
2011-03-01minibar: make the feedback form work in the generic minibarhallgren
It is still disabled by default, since some manual configuraiton of feedback.cgi is required.
2011-02-28gfse: fix missing startcat flag bug + documentation updateshallgren
2011-02-28gfse: fix persmission problem in upload.cgihallgren
2011-02-28gfse: include a -path flag to find rgl moduleshallgren
2011-02-28gfse: support for opening RGL moduleshallgren
2011-02-28gfse: minor documentation and style improvementshallgren