From ca185011269606596814075d4c8f9d13a855866b Mon Sep 17 00:00:00 2001 From: Anders Svensson Date: Sun, 16 Oct 2011 21:36:37 +0200 Subject: Replace dictionary file parser The previous parse was very adhoc and simply crashed on any kind of input error, providing no identification of the objectionable input that caused the parse to fail. The new parser is generated from a yecc grammar, making it easier both to understand what it is that's being parsed and to provide useful diagnostics to the user in case of error. --- lib/diameter/src/modules.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/diameter/src/modules.mk') diff --git a/lib/diameter/src/modules.mk b/lib/diameter/src/modules.mk index c7cbe598af..6929528a37 100644 --- a/lib/diameter/src/modules.mk +++ b/lib/diameter/src/modules.mk @@ -24,6 +24,10 @@ DICTS = \ base_accounting \ relay +# The yecc grammar for the dictionary parser. +DICT_YRL = \ + diameter_dict_parser + # Handwritten (runtime) modules included in the app file. RT_MODULES = \ base/diameter \ @@ -62,7 +66,7 @@ CT_MODULES = \ base/diameter_info \ compiler/diameter_codegen \ compiler/diameter_exprecs \ - compiler/diameter_spec_scan \ + compiler/diameter_dict_scanner \ compiler/diameter_spec_util \ compiler/diameter_make -- cgit v1.2.3