Skip to content

Commit

Permalink
adding more ether dialects to LipidMaps grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-kopczynski committed Jun 13, 2022
1 parent a4d1f73 commit 90f062a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions LipidMaps.g4
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ mediator_oxo: 'Oxo' | 'oxo';

/* generic rules */
fa: fa_unmod | fa_unmod fa_mod | fa_unmod fa_mod_separator fa_mod;
fa_unmod: round_open_bracket ether fa_pure round_close_bracket | round_open_bracket fa_pure round_close_bracket | ether fa_pure | fa_pure;
fa_unmod: round_open_bracket fa_pure ether_suffix round_close_bracket | round_open_bracket ether_prefix fa_pure round_close_bracket | round_open_bracket fa_pure round_close_bracket | ether_prefix fa_pure | fa_pure ether_suffix | fa_pure;
fa_mod: round_open_bracket modification round_close_bracket;
modification: modification ',' modification | single_mod;
single_mod : isomeric_mod | isomeric_mod square_open_bracket stereo square_close_bracket | structural_mod | structural_mod square_open_bracket stereo square_close_bracket;
Expand All @@ -190,7 +190,8 @@ structural_mod : mod_text | mod_text mod_num;
mod_pos : number;
mod_num : number;
mod_text: 'OH' | 'Ke' | 'OOH' | 'My' | 'Me' | 'Br' | 'CHO' | 'COOH' | 'Cp' | 'Ep' | 'KE' | 'NH';
ether : 'P-' | 'O-';
ether_prefix : 'P-' | 'O-';
ether_suffix : 'p' | 'e';
stereo : 'R' | 'S';
fa_pure: carbon carbon_db_separator db | carbon carbon_db_separator db db_hydroxyl_separator hydroxyl;
lcb_pure_fa : lcb_fa;
Expand Down

0 comments on commit 90f062a

Please sign in to comment.