1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! Defines all the possible tokens in openqasm 2.0.
/// An enum containing all the possible tokens in openqasm 2.0
/// Tokenizing an openqasm file returns a list of [TokenMatch]es. It is
/// a tuple where the first element is the type of token found. The second
/// is the String that was matched in the openqasm file. For keywords like
/// [OPENQASM](Token::OPENQASM) or [If](Token::If) the String is unecessary as it will always be the constant
/// string matching the keyword. For [Str](Token::Str), [Identifier](Token::Identifier), [Number](Token::Number) and [Int](Token::Int) however
/// there are different strings that can match to that tokentype.
pub type TokenMatch = ;