From: <got...@us...> - 2008-06-02 15:22:09
|
Revision: 98 http://scstudio.svn.sourceforge.net/scstudio/?rev=98&view=rev Author: gotthardp Date: 2008-06-02 08:22:03 -0700 (Mon, 02 Jun 2008) Log Message: ----------- Added custom build procedure for antlr. Modified Paths: -------------- trunk/src/data/Z120/CMakeLists.txt trunk/src/data/Z120/Z120.g Modified: trunk/src/data/Z120/CMakeLists.txt =================================================================== --- trunk/src/data/Z120/CMakeLists.txt 2008-06-02 10:40:48 UTC (rev 97) +++ trunk/src/data/Z120/CMakeLists.txt 2008-06-02 15:22:03 UTC (rev 98) @@ -3,6 +3,11 @@ INCLUDE_DIRECTORIES(${CMAKE_INSTALL_PREFIX}/include) +ADD_CUSTOM_COMMAND( + OUTPUT Z120Lexer.c Z120Lexer.h Z120Parser.c Z120Parser.h + COMMAND java org.antlr.Tool Z120.g + DEPENDS Z120.g) + ADD_EXECUTABLE(parser main.cpp Z120.cpp Modified: trunk/src/data/Z120/Z120.g =================================================================== --- trunk/src/data/Z120/Z120.g 2008-06-02 10:40:48 UTC (rev 97) +++ trunk/src/data/Z120/Z120.g 2008-06-02 15:22:03 UTC (rev 98) @@ -16,6 +16,11 @@ * $Id: Z120.g 43 2008-04-24 12:05:24Z gotthardp $ */ +/* Note: + * This grammar corresponds 1:1 to the grammar described in ITU-T Z.120. + * All modifications and non-standard extensions must be properly described. + */ + grammar Z120; options @@ -219,11 +224,13 @@ Par Pure_Data_String Par ; +fragment Non_Parenthesis: (Non_Par_Non_Escape /*| escapechar (escapechar | par)*/) ; +fragment Non_Par_Non_Escape: Character_String ; @@ -258,6 +265,7 @@ // non-standard: Z.120 doesn't define top-level nonterminal textual_msc_file: (message_sequence_chart)* + -> MSC ; textual_msc_document: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |