Пример #1
0
 /// <summary>
 /// keyword_declaration : KEYWORD name=IDENTIFIER
 /// </summary>
 /// <param name="context"></param>
 /// <exception cref="Exception"></exception>
 public override void EnterKeyword_declaration(DcParser.Keyword_declarationContext context)
 {
     if (!_dcFile.AddKeyword(context.name.Text))
     {
         throw new Exception($"Failed to add keyword: {context.name.Text}");
     }
 }
Пример #2
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="DcParser.keyword_declaration"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitKeyword_declaration([NotNull] DcParser.Keyword_declarationContext context)
 {
 }