<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gf-core.git/src/compiler/GF/Grammar/CF.hs, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.adelon.net/gf-core.git/atom?h=master</id>
<link rel='self' href='https://git.adelon.net/gf-core.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/'/>
<updated>2014-03-21T21:25:05+00:00</updated>
<entry>
<title>refactor the compilation of CFG and EBNF grammars. Now they are parsed by using GF.Grammar.Parser just like the ordinary GF grammars. Furthermore now GF.Speech.CFG is moved to GF.Grammar.CFG. The new module is used by both the speech conversion utils and by the compiler for CFG grammars. The parser for CFG now consumes a lot less memory and can be used with grammars with more than 4 000 000 productions.</title>
<updated>2014-03-21T21:25:05+00:00</updated>
<author>
<name>kr.angelov</name>
<email>kr.angelov@gmail.com</email>
</author>
<published>2014-03-21T21:25:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=51a9ef72c7e32f06d2413a5aea5751df2780063b'/>
<id>urn:sha1:51a9ef72c7e32f06d2413a5aea5751df2780063b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reduced clutter in monadic code</title>
<updated>2013-11-20T00:45:33+00:00</updated>
<author>
<name>hallgren</name>
<email>hallgren@chalmers.se</email>
</author>
<published>2013-11-20T00:45:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=018c9838ed31571b699118ae75b1d62d5527fd77'/>
<id>urn:sha1:018c9838ed31571b699118ae75b1d62d5527fd77</id>
<content type='text'>
+ Eliminated vairous ad-hoc coersion functions between specific monads 
  (IO, Err, IOE, Check) in favor of more general lifting functions
  (liftIO, liftErr).
+ Generalized many basic monadic operations from specific monads to
  arbitrary monads in the appropriate class (MonadIO and/or ErrorMonad),
  thereby completely eliminating the need for lifting functions in lots
  of places.

This can be considered a small step forward towards a cleaner
compiler API and more malleable compiler code in general.
</content>
</entry>
<entry>
<title>Fix Issue 41: "," in context-free rules causes parsing failure</title>
<updated>2013-11-11T16:50:43+00:00</updated>
<author>
<name>hallgren</name>
<email>hallgren@chalmers.se</email>
</author>
<published>2013-11-11T16:50:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=b111b476a75577a5b21d1d498975cbb2eeed9324'/>
<id>urn:sha1:b111b476a75577a5b21d1d498975cbb2eeed9324</id>
<content type='text'>
The CF parser in GF.Grammar.CF assigns function names to the rules, but they
are not always unique, causing rules to be dropped in the follwing CF-&gt;GF
conversion. So a pass has been added before the CF-&gt;GF conversion, to make
sure that function names are unique.

A comment says "rules have an amazingly easy parser", but the parser looks
like quick hack. It is very sloppy and silently ignores many errors, e.g.
- Explicitly given function names should end with '.', but if the do not, the
  last character in the function name is silently dropped.
- Everything following a ';' is silently dropped.
</content>
</entry>
<entry>
<title>Eliminate mutual dependencies between the GF compiler and the PGF library</title>
<updated>2013-11-05T13:11:10+00:00</updated>
<author>
<name>hallgren</name>
<email>hallgren@chalmers.se</email>
</author>
<published>2013-11-05T13:11:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=3814841d7d3b77b3f033cb98c1c0a04ac39435d7'/>
<id>urn:sha1:3814841d7d3b77b3f033cb98c1c0a04ac39435d7</id>
<content type='text'>
+ References to modules under src/compiler have been eliminated from the PGF
  library (under src/runtime/haskell). Only two functions had to be moved (from
  GF.Data.Utilities to PGF.Utilities) to make this possible, other apparent
  dependencies turned out to be vacuous.

+ In gf.cabal, the GF executable no longer directly depends on the PGF library
  source directory, but only on the exposed library modules. This means that
  there is less duplication in gf.cabal and that the 30 modules in the
  PGF library will no longer be compiled twice while building GF.

  To make this possible, additional PGF library modules have been exposed, even
  though they should probably be considered for internal use only. They could
  be collected in a PGF.Internal module, or marked as "unstable", to make
  this explicit.

+ Also, by using the -fwarn-unused-imports flag, ~220 redundant imports were
  found and removed, reducing the total number of imports by ~15%.

</content>
</entry>
<entry>
<title>added the linref construction in GF. The PGF version number is now bumped</title>
<updated>2013-10-30T12:53:36+00:00</updated>
<author>
<name>kr.angelov</name>
<email>kr.angelov@gmail.com</email>
</author>
<published>2013-10-30T12:53:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=042243f08a321cd8ed5918ba94e83f22a8552adb'/>
<id>urn:sha1:042243f08a321cd8ed5918ba94e83f22a8552adb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make Ident abstract; imports of Data.ByteString.Char8 down from 29 to 16 modules</title>
<updated>2013-09-19T18:23:47+00:00</updated>
<author>
<name>hallgren</name>
<email>hallgren@chalmers.se</email>
</author>
<published>2013-09-19T18:23:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=3d5b9bd1fd46a51651cbfbd45f03e5b878aebbac'/>
<id>urn:sha1:3d5b9bd1fd46a51651cbfbd45f03e5b878aebbac</id>
<content type='text'>
Most of the explicit uses of ByteStrings were eliminated by using identS,

	identS = identC . BS.pack 

which was found in GF.Grammar.CF and moved to GF.Infra.Ident. The function

	prefixIdent :: String -&gt; Ident -&gt; Ident

allowed one additional import of ByteString to be eliminated. The functions

	isArgIdent :: Ident -&gt; Bool
	getArgIndex :: Ident -&gt; Maybe Int

were needed to eliminate explicit pattern matching on Ident from two modules.
</content>
</entry>
<entry>
<title>Use nub' instead of nub in some places, remove some unused nub imports</title>
<updated>2012-08-29T21:48:34+00:00</updated>
<author>
<name>peter.ljunglof</name>
<email>peter.ljunglof@gu.se</email>
</author>
<published>2012-08-29T21:48:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=b416f5bbf7a1ac6d549f68424fec3af64ce34725'/>
<id>urn:sha1:b416f5bbf7a1ac6d549f68424fec3af64ce34725</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Now PMCFG is compiled per module and at the end we only link it. The new compilation schema is few times faster.</title>
<updated>2011-11-10T14:09:41+00:00</updated>
<author>
<name>kr.angelov</name>
<email>kr.angelov@gmail.com</email>
</author>
<published>2011-11-10T14:09:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=416d231c5ecb4eea4bdb121e1503a74111373256'/>
<id>urn:sha1:416d231c5ecb4eea4bdb121e1503a74111373256</id>
<content type='text'>
</content>
</entry>
<entry>
<title>merge GF.Infra.Modules and GF.Grammar.Grammar. This is a preparation for the separate PGF building</title>
<updated>2011-11-02T13:57:11+00:00</updated>
<author>
<name>kr.angelov</name>
<email>kr.angelov@gmail.com</email>
</author>
<published>2011-11-02T13:57:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=734c66710e9bffa986c094e8c584295b33cd2f63'/>
<id>urn:sha1:734c66710e9bffa986c094e8c584295b33cd2f63</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Now the compiler maintains more precise information for the source locations of the different definitions. There is a --tags option which generates a list of all identifiers with their source locations.</title>
<updated>2011-11-02T11:44:59+00:00</updated>
<author>
<name>kr.angelov</name>
<email>kr.angelov@gmail.com</email>
</author>
<published>2011-11-02T11:44:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=5fe49ed9f7ac7089301e867e55bfedefcba230dd'/>
<id>urn:sha1:5fe49ed9f7ac7089301e867e55bfedefcba230dd</id>
<content type='text'>
</content>
</entry>
</feed>
