Adela Vais - SAOC Milestone 3 Update 1 - Dlang GLR Parser for GNU Bison

Adela Vais adela.vais99 at gmail.com
Wed Dec 2 00:36:20 UTC 2020


On Saturday, 21 November 2020 at 21:46:08 UTC, Adela Vais wrote:
>>[...]

Hello!

As of last week:
- I worked on internationalization. I changed my approach and 
moved to a code version more similar to the C parser's one. The 
code seems to be working, but I have some problems with the 
automatization of the testing process. I sent a WIP[1] for 
feedback.
- I opened a PR[2] in druntime to add libintl.h in the language, 
as it is often used with locale.h, and it would bring 
internationalization into D. At the moment, for 
internationalization, I am using functions from libintl.h and 
from locale.h (that exists in D, in core.stdc.locale). For the 
libintl functions, I am using extern(C).
- I started working on the push parser. At the moment, I am still 
working on a pull version, and I am extracting parse() local 
variables and making them members of the YYParser class. I do 
this to preserve the parser state between calls when I will move 
to a push parser.

The plan for next week:
- continue working on the above.

#SAOC2020

[1]: 
https://github.com/adelavais/bison/tree/internationalisation-gettext
[2]: https://github.com/dlang/druntime/pull/3300


More information about the Digitalmars-d mailing list