<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gf-core.git/src/compiler/GF/Grammar/Parser.y, branch optimize</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.adelon.net/gf-core.git/atom?h=optimize</id>
<link rel='self' href='https://git.adelon.net/gf-core.git/atom?h=optimize'/>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/'/>
<updated>2023-09-11T10:30:28+00:00</updated>
<entry>
<title>Improve syntax error messages</title>
<updated>2023-09-11T10:30:28+00:00</updated>
<author>
<name>Andreas Källberg</name>
<email>anka.213@gmail.com</email>
</author>
<published>2023-09-11T10:29:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=ffd7b27abd050dc50f5986c9b94f8fb5d120c2db'/>
<id>urn:sha1:ffd7b27abd050dc50f5986c9b94f8fb5d120c2db</id>
<content type='text'>
Now you will get error messages like these:
example.gf:1:21:
   Syntax error:
     Unexpected token '}'.
     Expected one of:
     - '{'
     - 'open'
     - an identifier
</content>
</entry>
<entry>
<title>using an unparsable variable name in the internal desugaring of table extension to avoid captures; captures with iterated table extensions might still be possible, which needs further analysis</title>
<updated>2022-10-04T09:06:56+00:00</updated>
<author>
<name>Aarne Ranta</name>
<email>aarne@chalmers.se</email>
</author>
<published>2022-10-04T09:06:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=223f92d4f67bc4a168409b20e019b0ec6ad4b904'/>
<id>urn:sha1:223f92d4f67bc4a168409b20e019b0ec6ad4b904</id>
<content type='text'>
</content>
</entry>
<entry>
<title>New construct: table update. Syntax t ** { cases }. Syntactic sugar for table {cases ; vvv =&gt; t \! vvv}.t</title>
<updated>2022-10-03T15:04:29+00:00</updated>
<author>
<name>aarneranta</name>
<email>aarne@chalmers.se</email>
</author>
<published>2022-10-03T15:04:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=83483b93bac1dd63bc2d8c52341aa0a8bfbb267e'/>
<id>urn:sha1:83483b93bac1dd63bc2d8c52341aa0a8bfbb267e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove obsolete code</title>
<updated>2019-09-20T08:37:50+00:00</updated>
<author>
<name>krangelov</name>
<email>kr.angelov@gmail.com</email>
</author>
<published>2019-09-20T08:37:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=4d79aa8b198f411d0ab6d66d76d9f77dfd3f922f'/>
<id>urn:sha1:4d79aa8b198f411d0ab6d66d76d9f77dfd3f922f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Lexer.x &amp; Parser.y: add a partial parser for terms</title>
<updated>2016-04-07T13:32:14+00:00</updated>
<author>
<name>hallgren</name>
<email>hallgren@chalmers.se</email>
</author>
<published>2016-04-07T13:32:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=65e675d8e2fc530997b3209e6ab84760be5a0a65'/>
<id>urn:sha1:65e675d8e2fc530997b3209e6ab84760be5a0a65</id>
<content type='text'>
Lexer.x: Change the parser monad type P to allow the remaining input to
	 be returned after a partial parse. Add function

           runPartial :: P t -&gt; String -&gt; Either (Posn, String) (String, t)

Parser.y: Add a partial parser pTerm for nonterminal Exp1.
          Re-export runPartial.
</content>
</entry>
<entry>
<title>initial support for BNFC syntax in context-free grammars for GF. Not all features are supported yet. Based on contribution from Gleb Lobanov</title>
<updated>2016-03-21T13:27:44+00:00</updated>
<author>
<name>krasimir</name>
<email>krasimir@chalmers.se</email>
</author>
<published>2016-03-21T13:27:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=c8ebe093150509d9f01d82f0d698ef5df09bd985'/>
<id>urn:sha1:c8ebe093150509d9f01d82f0d698ef5df09bd985</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ModuleName and Ident are now distinct types</title>
<updated>2014-10-21T19:20:31+00:00</updated>
<author>
<name>hallgren</name>
<email>hallgren@chalmers.se</email>
</author>
<published>2014-10-21T19:20:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=391b301881bee7de9580f2c6d819144161e6a51d'/>
<id>urn:sha1:391b301881bee7de9580f2c6d819144161e6a51d</id>
<content type='text'>
This makes the documentation clearer, and can potentially catch more
programming mistakes.

</content>
</entry>
<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>Show relative file paths in error messages</title>
<updated>2013-12-06T15:43:34+00:00</updated>
<author>
<name>hallgren</name>
<email>hallgren@chalmers.se</email>
</author>
<published>2013-12-06T15:43:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=a98f4aa4be7b72a310a8b5826e3cc82c7edb8f40'/>
<id>urn:sha1:a98f4aa4be7b72a310a8b5826e3cc82c7edb8f40</id>
<content type='text'>
This is to avoid one trivial reason for failures in the test suite.
</content>
</entry>
<entry>
<title>Change how GF deals with character encodings in grammar files</title>
<updated>2013-11-25T21:12:11+00:00</updated>
<author>
<name>hallgren</name>
<email>hallgren@chalmers.se</email>
</author>
<published>2013-11-25T21:12:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.adelon.net/gf-core.git/commit/?id=9d7fdf7c9a525a3b5659a566f76d26d151dcd664'/>
<id>urn:sha1:9d7fdf7c9a525a3b5659a566f76d26d151dcd664</id>
<content type='text'>
1. The default encoding is changed from Latin-1 to UTF-8.

2. Alternate encodings should be specified as "--# -coding=enc", the old
   "flags coding=enc" declarations have no effect but are still checked for
   consistency.

3. A transitional warning is generated for files that contain non-ASCII
   characters without specifying a character encoding:

	"Warning: default encoding has changed from Latin-1 to UTF-8"

4. Conversion to Unicode is now done *before* lexing. This makes it possible
   to allow arbitrary Unicode characters in identifiers. But identifiers are
   still stored as ByteStrings, so they are limited to Latin-1 characters
   for now.

5. Lexer.hs is no longer part of the repository. We now generate the lexer
   from Lexer.x with alex&gt;=3. Some workarounds for bugs in alex-3.0 were
   needed. These bugs might already be fixed in newer versions of alex, but
   we should be compatible with what is shipped in the Haskell Platform.
</content>
</entry>
</feed>
