Commit Graph
31 Commits
Author SHA1 Message Date
bjorn 2f89962c44 Refactor GFI to treat command line files and the i command uniformly. Disable CSE by default in GFI. 2008-05-30 15:20:28 +00:00
bjorn 54ebdab1f7 Change setOptimization to produce Options, not a function over Options. 2008-05-30 15:20:09 +00:00
bjorn 7f90087ab9 Added setOptimization function to GF.Infra.Options. I will need to do similar things for other options. 2008-05-30 13:56:50 +00:00
bjorn 34736bb431 Only print \n instead of CPU time in putPointE when printing the text message. This avoids printings lots of empty lines in silent mode. 2008-05-29 08:06:56 +00:00
bjorn d459573c80 Copy startcat flag to .gfo file. 2008-05-29 08:01:55 +00:00
bjorn dd8c3e91a0 Oops, inverted meaning of optBuildParser. 2008-05-28 19:56:12 +00:00
bjorn 2fcc77a884 Some printing / verbosity fixes. 2008-05-28 15:56:37 +00:00
bjorn a5cf2afccf Added GF.Infra.GetOpt to GF.cabal 2008-05-28 15:56:25 +00:00
bjorn 3fd1f5652a Switch to new options handling.
This changes lots of stuff, let me know if it broke anything.

Comments:

- We use a local hacked version of GetOpt that allows long forms of commands to start with a single dash. This breaks other parts of GetOpt. For example, arguments to short options now require a =, and does not allo pace after the option character.

- The new command parsing is currently only used for the program command line, pragmas and the arguments for the 'i' shell command.

- I made a quick hack for the options for showTerm, which currently makes it impossible to use the print style flags for cc. This will be replaced by a facility for parsing command-specific options.

- The verbosity handling is broken in some places. I will fix that in a later patch.
2008-05-28 15:10:36 +00:00
bjorn 6027c10a0c Get rid of the 'f' type parameter to the module types.
This was only ever instantiated with Option, and made it diificult to change the options type.
2008-05-23 08:47:07 +00:00
bjorn 5aceb18beb Set version number in configure.ac to "3.0-alpha". You need to rerun autoconf and configure to have this take effect. 2008-05-23 06:53:29 +00:00
bjorn 003278e52d Added GF.System.Readline and related modules back into src-3.0. 2008-05-23 06:31:52 +00:00
bjorn 74f048dcf4 Fix link to code.haskell.org account request page. 2008-05-13 18:26:46 +00:00
bjorn f17addbcd3 grammars/health/HealthRus.gf: comment out the linearizations of functions that are commented out in Health.gf. HealthRus now compiles (against resource-0.6). 2008-05-09 12:40:16 +00:00
bjorn b21fe03735 Rename index.html to homepage.html. 2008-02-27 15:13:11 +00:00
bjorn 8d5d6cc10e Fix LatestCode link. 2008-02-27 15:12:54 +00:00
bjorn 44454a93ab Build gf-embed with -O2. 2008-02-26 17:22:38 +00:00
bjorn c430d88a09 Replace fromJust with fromMaybe + error message when looking up lintype in SimpleToFCFG. This makes problems easier to debug. 2008-02-26 14:00:15 +00:00
bjorn ad785c1bab Update darcs.html for the code.haskell.org repo. 2008-02-25 15:27:44 +00:00
bjorn 7412c24267 Treat pre tokens as variants in SimpleToFCFG. This should allow us to parse sentences with e.g. "an". 2008-02-19 22:09:56 +00:00
bjorn b468482c3f Some work on gf3/gfc command-line options. 2008-02-19 20:59:01 +00:00
bjorn 8873196f84 Rename gfcats to startupcats in PGF. 2008-02-15 20:13:01 +00:00
bjorn 18b2205d0d Use isAlpha instead of isLetter to compile with GHC 6.4. Reported by moises. 2008-02-08 09:20:32 +00:00
bjorn 53106abf7e Added PGF version numbers to GFCC file. 2008-02-07 13:48:41 +00:00
bjorn d2a5a88b18 Include parser in JS produced by gf3. 2008-02-06 17:08:50 +00:00
bjorn ef50209983 Expand higher-order abstract syntax in SimpleToFCFG. 2008-02-05 14:33:22 +00:00
bjorn c6137229eb Standard format for floats and strings in GFCC. 2008-01-30 17:18:27 +00:00
bjorn 76bfc8e98d Changed GFCC parser format to only include the FCFG rules and the GF cat -> FCFG cat mapping. The other information is very easy to build on the fly. 2008-01-30 16:39:44 +00:00
bjorn 42382d6f93 Merge AId and App forms in GFCCRaw. 2008-01-29 15:53:50 +00:00
bjorn 730a9905f3 UTF-8 encode in printGFCC. 2008-01-28 21:43:04 +00:00
bjorn f52c19d4da GFCCRaw printing: no space in App with no arguments. 2008-01-26 16:46:46 +00:00