Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ocamllex - What is the difference between characters ? ( # )

They've an operator with ocamllex which is the #: difference between two characters or character sets.

Here, there is a notion I don't understand: it is the difference between characters. What does mean the difference between characters? So if someone can explain me, I take it!

like image 651
afk Avatar asked Feb 17 '23 19:02

afk


1 Answers

[ 'a' - 'z' ] # [ 'a' 'e' 'i' 'o' 'u' ] denotes the set of all characters between a and z that are not a, e, i, o or u. More generally, foo # bar denotes the set of elements that are in foo but not in bar.

like image 160
gasche Avatar answered Feb 24 '23 03:02

gasche