An island grammar is one that treats most of the language as a piece of text ("water") and highlights part of the word of interest for analysis using grammatical rules ("island"). For example, you can create an island grammar to select all expressions found in a C # program and ignore variable / method / class declarations and operator syntax (if, while, ...).
The real question is: “Should language grammars be used at all?”
Positive advantages:
:
. ,
, , , ? , , .
, , . , , , , .
, (, " " ), - , . ( , ..... , ), , .
, . , . , , - , DMS Software Reengineering Toolkit.
YMMV.