26.12.2013 Views

A computational grammar and lexicon for Maltese

A computational grammar and lexicon for Maltese

A computational grammar and lexicon for Maltese

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

While designed primarily <strong>for</strong> application <strong>grammar</strong>s, it can also be used <strong>for</strong> constructing API<br />

trees <strong>and</strong> testing them out in some reference language. Figure 2.2 shows a screenshot of this<br />

tool.<br />

Figure 2.2: Screenshot of the syntax tree editor<br />

2.4.2 Test methodology<br />

The general methodology <strong>for</strong> testing GF resource <strong>grammar</strong>s is as follows (Ranta, 2011):<br />

1. For each feature/function being h<strong>and</strong>led in the <strong>grammar</strong>, build up a list of abstract syntax<br />

trees (or API trees) which test this feature <strong>and</strong> write down their intended linearisations<br />

(gold st<strong>and</strong>ards).<br />

2. This list can partially be built using the examples in the source code comments in each of<br />

the RGL’s abstract syntax modules.<br />

3. Write each function implementation to satisfy the gold st<strong>and</strong>ard, <strong>and</strong> check the actual<br />

linearisation produced by the <strong>grammar</strong> against the ideal one.<br />

4. Each time a module is changed, re-run the regression test to ensure that no new bugs have<br />

been introduced.<br />

40

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!