enum

  1. class enum
  2. {
  3. Root >> dot;
  4. node dot : [ type : lex, lex : '...' | 'etc.' ];
  5. dot => node(dot).dummy.is_present = value(+);
  6. ~ dot => node(dot).dummy.is_present = value(-);
  7. coma => node(dot).dummy.is_present = value(+);
  8. Root >> coma;
  9. node coma : [type : lex, lex : ','];
  10. coma < dot;
  11. block3::Seq < coma;
  12. - block1::coord_block; Root = block1::Root;
  13. %% - block2::coord_block; Root = block2::Root;
  14. - block3::coord_block; Root = block3::Root;
  15. node(block1::Coord).type = $type;
  16. %% node(block2::Coord).type = $type;
  17. node(block3::Coord).type = $type;
  18. Foot < block1::Seq;
  19. %% block1::Seq < block2::Seq;
  20. %% block2::Seq < block3::Seq;
  21. block1::Seq < block3::Seq;
  22. block3::Seq < dot;
  23. node(block3::Seq).star = value(*);
  24. node(Foot).bot.enum = value(~enum|appos);
  25. node(Root).bot.enum = value(enum);
  26. desc.ht = value([arg0:@emptyarg_fs,arg1:@emptyarg_fs,arg2:@emptyarg_fs]);
  27. desc.dependency = value('coord');
  28. }

Ajouter un commentaire

Connectez-vous ou inscrivez-vous pour publier un commentaire

Class Graph View