LumenVox Blood Type Application
Grammar of Blood Types

This sample grammar was created by Kenny Shumard of Digium to recognize human blood types.

Example of Grammar Blood Types

Author: Kenny Shumard

#ABNF 1.0 UTF-8;

language en-US;

mode voice;

tag-format ;

root $Bloodtype;

$letter = (/1.5/ "A B" {$ = "AB"}|
          /2/ "A" {$ = "A"}|
          "B" {$ = "B"}|
          "O" {$ = "O"});

$rh =   (PLUS  | POSITIVE):"+"|
        (MINUS | NEGATIVE):"-";

$type = ( TYPE );

$Bloodtype = {$=""} [$type] $letter {$+=$$} $rh {$+=$$};
                    

© 2016 LumenVox, LLC. All rights reserved.