210 Commits

Author SHA1 Message Date
Raphael Amiard
5d0e7ae96a P303-009: Modify emit_and_print_errors API
Instead of taking the grammar, it now takes a function that creates the
grammar. This allows us to have proper diagnostic handling during the
grammar construction.

Change-Id: Ifbddbda53b24972e5e613b78b72a395bd1a05b2c
2016-05-04 15:21:44 +02:00
Raphael Amiard
67a5a6458c P429-013: Refactor main rule name selection
Change-Id: I0f225cb2ba1e0c46137d66cbf9c3b35c9c17adb7
2016-04-29 15:07:27 +02:00
Pierre-Marie de Rodat
27a2ce9646 Use the testsuite-provided Python interpreter to use gen. libraries
Change-Id: I6f293c670867d1d41016555e23f3e59c87516503
TN: P414-008
2016-04-15 17:02:43 +02:00
Pierre-Marie de Rodat
38893464f7 Rename "exported_field" to "library_public_field"
To avoid any ambiguity with the "export" word.

Change-Id: If090809c4894232a3b07ed20803320bd905abfcc
TN: P404-023
2016-04-13 12:43:08 +02:00
Pierre-Marie de Rodat
7b65e98889 Add a testcase for the LexicalEnv.get binding in Python
Change-Id: I67873b9eae388bae6759b7f6d8909d60e2a93703
TN: P406-021
2016-04-12 16:02:13 +02:00
Pierre-Marie de Rodat
e4e2c28ff1 Testsuite: add helpers to build a lang lib and run a script using it
Change-Id: Ic366de700ae04474b315d0f0a6929cebb463abeb
TN: P406-021
2016-04-12 16:02:12 +02:00
Pierre-Marie de Rodat
e330d024c3 Add a test for property privacy checks
Change-Id: Ic6b3284a11b4266a47ed87972aa8c2b862136706
TN: P404-013
2016-04-06 12:23:26 +02:00
Raphael Amiard
074f750856 Basis for diagnostic framework in langkit.
The aim is to allow:

1. Better error messages for user mistakes, with some context.
2. Clear distinction between user mistakes and internal errors.

This commit just introduces the base infrastructure in diagnostics.py,
and renames user_assert as check_source_language. The base for
introducing context is here, but not yet used.

Change-Id: Ie386fa42253cf6787f30f9166c54cb2522155849
TN: P303-009
2016-03-25 13:28:45 +01:00
Pierre-Marie de Rodat
a835c58128 Add test for Match property expressions input validation
Change-Id: I2e04ac941d23b7762c3050f69f400a2a10b9e2aa
TN: P315-031
2016-03-18 16:30:01 +01:00
Pierre-Marie de Rodat
f6feacab39 Create a dedicated testsuite
Start it with a single testcase in order to test the framework.

Change-Id: I4f3bf0309e78e9b4827d6800add2060362ac4166
TN: P210-005
2016-02-22 09:57:01 +01:00