Skip to content
Snippets Groups Projects
Commit dc9f16bc authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

Updates for xasm for loops


Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent 7ed3d3a4
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ null
';'
'return'
'for'
'auto'
'<'
'>'
'++'
......@@ -80,6 +81,7 @@ null
null
null
null
null
COMMENT
ID
REAL
......@@ -114,4 +116,4 @@ string
atn:
[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 44, 244, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 3, 2, 3, 2, 5, 2, 49, 10, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7, 3, 59, 10, 3, 12, 3, 14, 3, 62, 11, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 5, 4, 71, 10, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 7, 4, 79, 10, 4, 12, 4, 14, 4, 82, 11, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 7, 3, 7, 3, 8, 6, 8, 97, 10, 8, 13, 8, 14, 8, 98, 3, 9, 6, 9, 102, 10, 9, 13, 9, 14, 9, 103, 3, 9, 5, 9, 107, 10, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 5, 10, 115, 10, 10, 3, 11, 3, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 6, 12, 135, 10, 12, 13, 12, 14, 12, 136, 3, 12, 3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 5, 13, 146, 10, 13, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 15, 7, 15, 158, 10, 15, 12, 15, 14, 15, 161, 11, 15, 3, 15, 7, 15, 164, 10, 15, 12, 15, 14, 15, 167, 11, 15, 5, 15, 169, 10, 15, 3, 16, 3, 16, 3, 16, 3, 16, 7, 16, 175, 10, 16, 12, 16, 14, 16, 178, 11, 16, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 3, 18, 7, 18, 191, 10, 18, 12, 18, 14, 18, 194, 11, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 5, 19, 214, 10, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 7, 19, 231, 10, 19, 12, 19, 14, 19, 234, 11, 19, 3, 20, 3, 20, 3, 21, 3, 21, 3, 22, 3, 22, 3, 23, 3, 23, 3, 23, 2, 3, 36, 24, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 2, 7, 3, 2, 12, 13, 3, 2, 15, 18, 3, 2, 22, 23, 3, 2, 24, 25, 3, 2, 32, 37, 2, 250, 2, 48, 3, 2, 2, 2, 4, 50, 3, 2, 2, 2, 6, 68, 3, 2, 2, 2, 8, 88, 3, 2, 2, 2, 10, 91, 3, 2, 2, 2, 12, 93, 3, 2, 2, 2, 14, 96, 3, 2, 2, 2, 16, 106, 3, 2, 2, 2, 18, 114, 3, 2, 2, 2, 20, 116, 3, 2, 2, 2, 22, 118, 3, 2, 2, 2, 24, 140, 3, 2, 2, 2, 26, 149, 3, 2, 2, 2, 28, 168, 3, 2, 2, 2, 30, 170, 3, 2, 2, 2, 32, 181, 3, 2, 2, 2, 34, 187, 3, 2, 2, 2, 36, 213, 3, 2, 2, 2, 38, 235, 3, 2, 2, 2, 40, 237, 3, 2, 2, 2, 42, 239, 3, 2, 2, 2, 44, 241, 3, 2, 2, 2, 46, 49, 5, 4, 3, 2, 47, 49, 5, 6, 4, 2, 48, 46, 3, 2, 2, 2, 48, 47, 3, 2, 2, 2, 49, 3, 3, 2, 2, 2, 50, 51, 7, 3, 2, 2, 51, 52, 7, 4, 2, 2, 52, 53, 5, 40, 21, 2, 53, 54, 7, 5, 2, 2, 54, 55, 7, 6, 2, 2, 55, 60, 5, 40, 21, 2, 56, 57, 7, 7, 2, 2, 57, 59, 5, 8, 5, 2, 58, 56, 3, 2, 2, 2, 59, 62, 3, 2, 2, 2, 60, 58, 3, 2, 2, 2, 60, 61, 3, 2, 2, 2, 61, 63, 3, 2, 2, 2, 62, 60, 3, 2, 2, 2, 63, 64, 7, 8, 2, 2, 64, 65, 7, 9, 2, 2, 65, 66, 5, 12, 7, 2, 66, 67, 7, 10, 2, 2, 67, 5, 3, 2, 2, 2, 68, 70, 7, 11, 2, 2, 69, 71, 9, 2, 2, 2, 70, 69, 3, 2, 2, 2, 70, 71, 3, 2, 2, 2, 71, 72, 3, 2, 2, 2, 72, 73, 7, 14, 2, 2, 73, 74, 7, 5, 2, 2, 74, 75, 7, 6, 2, 2, 75, 80, 5, 40, 21, 2, 76, 77, 7, 7, 2, 2, 77, 79, 5, 8, 5, 2, 78, 76, 3, 2, 2, 2, 79, 82, 3, 2, 2, 2, 80, 78, 3, 2, 2, 2, 80, 81, 3, 2, 2, 2, 81, 83, 3, 2, 2, 2, 82, 80, 3, 2, 2, 2, 83, 84, 7, 8, 2, 2, 84, 85, 7, 9, 2, 2, 85, 86, 5, 12, 7, 2, 86, 87, 7, 10, 2, 2, 87, 7, 3, 2, 2, 2, 88, 89, 5, 10, 6, 2, 89, 90, 5, 40, 21, 2, 90, 9, 3, 2, 2, 2, 91, 92, 9, 3, 2, 2, 92, 11, 3, 2, 2, 2, 93, 94, 5, 14, 8, 2, 94, 13, 3, 2, 2, 2, 95, 97, 5, 16, 9, 2, 96, 95, 3, 2, 2, 2, 97, 98, 3, 2, 2, 2, 98, 96, 3, 2, 2, 2, 98, 99, 3, 2, 2, 2, 99, 15, 3, 2, 2, 2, 100, 102, 5, 18, 10, 2, 101, 100, 3, 2, 2, 2, 102, 103, 3, 2, 2, 2, 103, 101, 3, 2, 2, 2, 103, 104, 3, 2, 2, 2, 104, 107, 3, 2, 2, 2, 105, 107, 5, 20, 11, 2, 106, 101, 3, 2, 2, 2, 106, 105, 3, 2, 2, 2, 107, 17, 3, 2, 2, 2, 108, 109, 5, 24, 13, 2, 109, 110, 7, 19, 2, 2, 110, 115, 3, 2, 2, 2, 111, 115, 5, 22, 12, 2, 112, 113, 7, 20, 2, 2, 113, 115, 7, 19, 2, 2, 114, 108, 3, 2, 2, 2, 114, 111, 3, 2, 2, 2, 114, 112, 3, 2, 2, 2, 115, 19, 3, 2, 2, 2, 116, 117, 7, 38, 2, 2, 117, 21, 3, 2, 2, 2, 118, 119, 7, 21, 2, 2, 119, 120, 7, 5, 2, 2, 120, 121, 7, 15, 2, 2, 121, 122, 5, 40, 21, 2, 122, 123, 7, 13, 2, 2, 123, 124, 7, 41, 2, 2, 124, 125, 7, 19, 2, 2, 125, 126, 5, 40, 21, 2, 126, 127, 9, 4, 2, 2, 127, 128, 7, 41, 2, 2, 128, 129, 7, 19, 2, 2, 129, 130, 5, 40, 21, 2, 130, 131, 9, 5, 2, 2, 131, 132, 7, 8, 2, 2, 132, 134, 7, 9, 2, 2, 133, 135, 5, 18, 10, 2, 134, 133, 3, 2, 2, 2, 135, 136, 3, 2, 2, 2, 136, 134, 3, 2, 2, 2, 136, 137, 3, 2, 2, 2, 137, 138, 3, 2, 2, 2, 138, 139, 7, 10, 2, 2, 139, 23, 3, 2, 2, 2, 140, 141, 5, 40, 21, 2, 141, 142, 7, 5, 2, 2, 142, 145, 5, 34, 18, 2, 143, 144, 7, 7, 2, 2, 144, 146, 5, 30, 16, 2, 145, 143, 3, 2, 2, 2, 145, 146, 3, 2, 2, 2, 146, 147, 3, 2, 2, 2, 147, 148, 7, 8, 2, 2, 148, 25, 3, 2, 2, 2, 149, 150, 5, 40, 21, 2, 150, 151, 7, 11, 2, 2, 151, 152, 5, 36, 19, 2, 152, 153, 7, 14, 2, 2, 153, 27, 3, 2, 2, 2, 154, 159, 5, 26, 14, 2, 155, 156, 7, 7, 2, 2, 156, 158, 5, 26, 14, 2, 157, 155, 3, 2, 2, 2, 158, 161, 3, 2, 2, 2, 159, 157, 3, 2, 2, 2, 159, 160, 3, 2, 2, 2, 160, 169, 3, 2, 2, 2, 161, 159, 3, 2, 2, 2, 162, 164, 5, 36, 19, 2, 163, 162, 3, 2, 2, 2, 164, 167, 3, 2, 2, 2, 165, 163, 3, 2, 2, 2, 165, 166, 3, 2, 2, 2, 166, 169, 3, 2, 2, 2, 167, 165, 3, 2, 2, 2, 168, 154, 3, 2, 2, 2, 168, 165, 3, 2, 2, 2, 169, 29, 3, 2, 2, 2, 170, 171, 7, 9, 2, 2, 171, 176, 5, 32, 17, 2, 172, 173, 7, 7, 2, 2, 173, 175, 5, 32, 17, 2, 174, 172, 3, 2, 2, 2, 175, 178, 3, 2, 2, 2, 176, 174, 3, 2, 2, 2, 176, 177, 3, 2, 2, 2, 177, 179, 3, 2, 2, 2, 178, 176, 3, 2, 2, 2, 179, 180, 7, 10, 2, 2, 180, 31, 3, 2, 2, 2, 181, 182, 7, 9, 2, 2, 182, 183, 5, 44, 23, 2, 183, 184, 7, 7, 2, 2, 184, 185, 5, 36, 19, 2, 185, 186, 7, 10, 2, 2, 186, 33, 3, 2, 2, 2, 187, 192, 5, 36, 19, 2, 188, 189, 7, 7, 2, 2, 189, 191, 5, 36, 19, 2, 190, 188, 3, 2, 2, 2, 191, 194, 3, 2, 2, 2, 192, 190, 3, 2, 2, 2, 192, 193, 3, 2, 2, 2, 193, 35, 3, 2, 2, 2, 194, 192, 3, 2, 2, 2, 195, 196, 8, 19, 1, 2, 196, 214, 5, 40, 21, 2, 197, 198, 7, 27, 2, 2, 198, 214, 5, 36, 19, 11, 199, 200, 7, 5, 2, 2, 200, 201, 5, 36, 19, 2, 201, 202, 7, 8, 2, 2, 202, 214, 3, 2, 2, 2, 203, 204, 5, 38, 20, 2, 204, 205, 7, 5, 2, 2, 205, 206, 5, 36, 19, 2, 206, 207, 7, 8, 2, 2, 207, 214, 3, 2, 2, 2, 208, 214, 5, 44, 23, 2, 209, 214, 5, 42, 22, 2, 210, 214, 7, 41, 2, 2, 211, 214, 7, 31, 2, 2, 212, 214, 5, 26, 14, 2, 213, 195, 3, 2, 2, 2, 213, 197, 3, 2, 2, 2, 213, 199, 3, 2, 2, 2, 213, 203, 3, 2, 2, 2, 213, 208, 3, 2, 2, 2, 213, 209, 3, 2, 2, 2, 213, 210, 3, 2, 2, 2, 213, 211, 3, 2, 2, 2, 213, 212, 3, 2, 2, 2, 214, 232, 3, 2, 2, 2, 215, 216, 12, 15, 2, 2, 216, 217, 7, 26, 2, 2, 217, 231, 5, 36, 19, 16, 218, 219, 12, 14, 2, 2, 219, 220, 7, 27, 2, 2, 220, 231, 5, 36, 19, 15, 221, 222, 12, 13, 2, 2, 222, 223, 7, 28, 2, 2, 223, 231, 5, 36, 19, 14, 224, 225, 12, 12, 2, 2, 225, 226, 7, 29, 2, 2, 226, 231, 5, 36, 19, 13, 227, 228, 12, 10, 2, 2, 228, 229, 7, 30, 2, 2, 229, 231, 5, 36, 19, 11, 230, 215, 3, 2, 2, 2, 230, 218, 3, 2, 2, 2, 230, 221, 3, 2, 2, 2, 230, 224, 3, 2, 2, 2, 230, 227, 3, 2, 2, 2, 231, 234, 3, 2, 2, 2, 232, 230, 3, 2, 2, 2, 232, 233, 3, 2, 2, 2, 233, 37, 3, 2, 2, 2, 234, 232, 3, 2, 2, 2, 235, 236, 9, 6, 2, 2, 236, 39, 3, 2, 2, 2, 237, 238, 7, 39, 2, 2, 238, 41, 3, 2, 2, 2, 239, 240, 7, 40, 2, 2, 240, 43, 3, 2, 2, 2, 241, 242, 7, 42, 2, 2, 242, 45, 3, 2, 2, 2, 20, 48, 60, 70, 80, 98, 103, 106, 114, 136, 145, 159, 165, 168, 176, 192, 213, 230, 232]
\ No newline at end of file
[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 45, 244, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 3, 2, 3, 2, 5, 2, 49, 10, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7, 3, 59, 10, 3, 12, 3, 14, 3, 62, 11, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 5, 4, 71, 10, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 7, 4, 79, 10, 4, 12, 4, 14, 4, 82, 11, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 7, 3, 7, 3, 8, 6, 8, 97, 10, 8, 13, 8, 14, 8, 98, 3, 9, 6, 9, 102, 10, 9, 13, 9, 14, 9, 103, 3, 9, 5, 9, 107, 10, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 5, 10, 115, 10, 10, 3, 11, 3, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 6, 12, 135, 10, 12, 13, 12, 14, 12, 136, 3, 12, 3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 5, 13, 146, 10, 13, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 15, 7, 15, 158, 10, 15, 12, 15, 14, 15, 161, 11, 15, 3, 15, 7, 15, 164, 10, 15, 12, 15, 14, 15, 167, 11, 15, 5, 15, 169, 10, 15, 3, 16, 3, 16, 3, 16, 3, 16, 7, 16, 175, 10, 16, 12, 16, 14, 16, 178, 11, 16, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 3, 18, 7, 18, 191, 10, 18, 12, 18, 14, 18, 194, 11, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 5, 19, 214, 10, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 7, 19, 231, 10, 19, 12, 19, 14, 19, 234, 11, 19, 3, 20, 3, 20, 3, 21, 3, 21, 3, 22, 3, 22, 3, 23, 3, 23, 3, 23, 2, 3, 36, 24, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 2, 8, 3, 2, 12, 13, 3, 2, 15, 18, 4, 2, 15, 15, 22, 22, 3, 2, 23, 24, 3, 2, 25, 26, 3, 2, 33, 38, 2, 250, 2, 48, 3, 2, 2, 2, 4, 50, 3, 2, 2, 2, 6, 68, 3, 2, 2, 2, 8, 88, 3, 2, 2, 2, 10, 91, 3, 2, 2, 2, 12, 93, 3, 2, 2, 2, 14, 96, 3, 2, 2, 2, 16, 106, 3, 2, 2, 2, 18, 114, 3, 2, 2, 2, 20, 116, 3, 2, 2, 2, 22, 118, 3, 2, 2, 2, 24, 140, 3, 2, 2, 2, 26, 149, 3, 2, 2, 2, 28, 168, 3, 2, 2, 2, 30, 170, 3, 2, 2, 2, 32, 181, 3, 2, 2, 2, 34, 187, 3, 2, 2, 2, 36, 213, 3, 2, 2, 2, 38, 235, 3, 2, 2, 2, 40, 237, 3, 2, 2, 2, 42, 239, 3, 2, 2, 2, 44, 241, 3, 2, 2, 2, 46, 49, 5, 4, 3, 2, 47, 49, 5, 6, 4, 2, 48, 46, 3, 2, 2, 2, 48, 47, 3, 2, 2, 2, 49, 3, 3, 2, 2, 2, 50, 51, 7, 3, 2, 2, 51, 52, 7, 4, 2, 2, 52, 53, 5, 40, 21, 2, 53, 54, 7, 5, 2, 2, 54, 55, 7, 6, 2, 2, 55, 60, 5, 40, 21, 2, 56, 57, 7, 7, 2, 2, 57, 59, 5, 8, 5, 2, 58, 56, 3, 2, 2, 2, 59, 62, 3, 2, 2, 2, 60, 58, 3, 2, 2, 2, 60, 61, 3, 2, 2, 2, 61, 63, 3, 2, 2, 2, 62, 60, 3, 2, 2, 2, 63, 64, 7, 8, 2, 2, 64, 65, 7, 9, 2, 2, 65, 66, 5, 12, 7, 2, 66, 67, 7, 10, 2, 2, 67, 5, 3, 2, 2, 2, 68, 70, 7, 11, 2, 2, 69, 71, 9, 2, 2, 2, 70, 69, 3, 2, 2, 2, 70, 71, 3, 2, 2, 2, 71, 72, 3, 2, 2, 2, 72, 73, 7, 14, 2, 2, 73, 74, 7, 5, 2, 2, 74, 75, 7, 6, 2, 2, 75, 80, 5, 40, 21, 2, 76, 77, 7, 7, 2, 2, 77, 79, 5, 8, 5, 2, 78, 76, 3, 2, 2, 2, 79, 82, 3, 2, 2, 2, 80, 78, 3, 2, 2, 2, 80, 81, 3, 2, 2, 2, 81, 83, 3, 2, 2, 2, 82, 80, 3, 2, 2, 2, 83, 84, 7, 8, 2, 2, 84, 85, 7, 9, 2, 2, 85, 86, 5, 12, 7, 2, 86, 87, 7, 10, 2, 2, 87, 7, 3, 2, 2, 2, 88, 89, 5, 10, 6, 2, 89, 90, 5, 40, 21, 2, 90, 9, 3, 2, 2, 2, 91, 92, 9, 3, 2, 2, 92, 11, 3, 2, 2, 2, 93, 94, 5, 14, 8, 2, 94, 13, 3, 2, 2, 2, 95, 97, 5, 16, 9, 2, 96, 95, 3, 2, 2, 2, 97, 98, 3, 2, 2, 2, 98, 96, 3, 2, 2, 2, 98, 99, 3, 2, 2, 2, 99, 15, 3, 2, 2, 2, 100, 102, 5, 18, 10, 2, 101, 100, 3, 2, 2, 2, 102, 103, 3, 2, 2, 2, 103, 101, 3, 2, 2, 2, 103, 104, 3, 2, 2, 2, 104, 107, 3, 2, 2, 2, 105, 107, 5, 20, 11, 2, 106, 101, 3, 2, 2, 2, 106, 105, 3, 2, 2, 2, 107, 17, 3, 2, 2, 2, 108, 109, 5, 24, 13, 2, 109, 110, 7, 19, 2, 2, 110, 115, 3, 2, 2, 2, 111, 115, 5, 22, 12, 2, 112, 113, 7, 20, 2, 2, 113, 115, 7, 19, 2, 2, 114, 108, 3, 2, 2, 2, 114, 111, 3, 2, 2, 2, 114, 112, 3, 2, 2, 2, 115, 19, 3, 2, 2, 2, 116, 117, 7, 39, 2, 2, 117, 21, 3, 2, 2, 2, 118, 119, 7, 21, 2, 2, 119, 120, 7, 5, 2, 2, 120, 121, 9, 4, 2, 2, 121, 122, 5, 40, 21, 2, 122, 123, 7, 13, 2, 2, 123, 124, 7, 42, 2, 2, 124, 125, 7, 19, 2, 2, 125, 126, 5, 40, 21, 2, 126, 127, 9, 5, 2, 2, 127, 128, 7, 42, 2, 2, 128, 129, 7, 19, 2, 2, 129, 130, 5, 40, 21, 2, 130, 131, 9, 6, 2, 2, 131, 132, 7, 8, 2, 2, 132, 134, 7, 9, 2, 2, 133, 135, 5, 18, 10, 2, 134, 133, 3, 2, 2, 2, 135, 136, 3, 2, 2, 2, 136, 134, 3, 2, 2, 2, 136, 137, 3, 2, 2, 2, 137, 138, 3, 2, 2, 2, 138, 139, 7, 10, 2, 2, 139, 23, 3, 2, 2, 2, 140, 141, 5, 40, 21, 2, 141, 142, 7, 5, 2, 2, 142, 145, 5, 34, 18, 2, 143, 144, 7, 7, 2, 2, 144, 146, 5, 30, 16, 2, 145, 143, 3, 2, 2, 2, 145, 146, 3, 2, 2, 2, 146, 147, 3, 2, 2, 2, 147, 148, 7, 8, 2, 2, 148, 25, 3, 2, 2, 2, 149, 150, 5, 40, 21, 2, 150, 151, 7, 11, 2, 2, 151, 152, 5, 36, 19, 2, 152, 153, 7, 14, 2, 2, 153, 27, 3, 2, 2, 2, 154, 159, 5, 26, 14, 2, 155, 156, 7, 7, 2, 2, 156, 158, 5, 26, 14, 2, 157, 155, 3, 2, 2, 2, 158, 161, 3, 2, 2, 2, 159, 157, 3, 2, 2, 2, 159, 160, 3, 2, 2, 2, 160, 169, 3, 2, 2, 2, 161, 159, 3, 2, 2, 2, 162, 164, 5, 36, 19, 2, 163, 162, 3, 2, 2, 2, 164, 167, 3, 2, 2, 2, 165, 163, 3, 2, 2, 2, 165, 166, 3, 2, 2, 2, 166, 169, 3, 2, 2, 2, 167, 165, 3, 2, 2, 2, 168, 154, 3, 2, 2, 2, 168, 165, 3, 2, 2, 2, 169, 29, 3, 2, 2, 2, 170, 171, 7, 9, 2, 2, 171, 176, 5, 32, 17, 2, 172, 173, 7, 7, 2, 2, 173, 175, 5, 32, 17, 2, 174, 172, 3, 2, 2, 2, 175, 178, 3, 2, 2, 2, 176, 174, 3, 2, 2, 2, 176, 177, 3, 2, 2, 2, 177, 179, 3, 2, 2, 2, 178, 176, 3, 2, 2, 2, 179, 180, 7, 10, 2, 2, 180, 31, 3, 2, 2, 2, 181, 182, 7, 9, 2, 2, 182, 183, 5, 44, 23, 2, 183, 184, 7, 7, 2, 2, 184, 185, 5, 36, 19, 2, 185, 186, 7, 10, 2, 2, 186, 33, 3, 2, 2, 2, 187, 192, 5, 36, 19, 2, 188, 189, 7, 7, 2, 2, 189, 191, 5, 36, 19, 2, 190, 188, 3, 2, 2, 2, 191, 194, 3, 2, 2, 2, 192, 190, 3, 2, 2, 2, 192, 193, 3, 2, 2, 2, 193, 35, 3, 2, 2, 2, 194, 192, 3, 2, 2, 2, 195, 196, 8, 19, 1, 2, 196, 214, 5, 40, 21, 2, 197, 198, 7, 28, 2, 2, 198, 214, 5, 36, 19, 11, 199, 200, 7, 5, 2, 2, 200, 201, 5, 36, 19, 2, 201, 202, 7, 8, 2, 2, 202, 214, 3, 2, 2, 2, 203, 204, 5, 38, 20, 2, 204, 205, 7, 5, 2, 2, 205, 206, 5, 36, 19, 2, 206, 207, 7, 8, 2, 2, 207, 214, 3, 2, 2, 2, 208, 214, 5, 44, 23, 2, 209, 214, 5, 42, 22, 2, 210, 214, 7, 42, 2, 2, 211, 214, 7, 32, 2, 2, 212, 214, 5, 26, 14, 2, 213, 195, 3, 2, 2, 2, 213, 197, 3, 2, 2, 2, 213, 199, 3, 2, 2, 2, 213, 203, 3, 2, 2, 2, 213, 208, 3, 2, 2, 2, 213, 209, 3, 2, 2, 2, 213, 210, 3, 2, 2, 2, 213, 211, 3, 2, 2, 2, 213, 212, 3, 2, 2, 2, 214, 232, 3, 2, 2, 2, 215, 216, 12, 15, 2, 2, 216, 217, 7, 27, 2, 2, 217, 231, 5, 36, 19, 16, 218, 219, 12, 14, 2, 2, 219, 220, 7, 28, 2, 2, 220, 231, 5, 36, 19, 15, 221, 222, 12, 13, 2, 2, 222, 223, 7, 29, 2, 2, 223, 231, 5, 36, 19, 14, 224, 225, 12, 12, 2, 2, 225, 226, 7, 30, 2, 2, 226, 231, 5, 36, 19, 13, 227, 228, 12, 10, 2, 2, 228, 229, 7, 31, 2, 2, 229, 231, 5, 36, 19, 11, 230, 215, 3, 2, 2, 2, 230, 218, 3, 2, 2, 2, 230, 221, 3, 2, 2, 2, 230, 224, 3, 2, 2, 2, 230, 227, 3, 2, 2, 2, 231, 234, 3, 2, 2, 2, 232, 230, 3, 2, 2, 2, 232, 233, 3, 2, 2, 2, 233, 37, 3, 2, 2, 2, 234, 232, 3, 2, 2, 2, 235, 236, 9, 7, 2, 2, 236, 39, 3, 2, 2, 2, 237, 238, 7, 40, 2, 2, 238, 41, 3, 2, 2, 2, 239, 240, 7, 41, 2, 2, 240, 43, 3, 2, 2, 2, 241, 242, 7, 43, 2, 2, 242, 45, 3, 2, 2, 2, 20, 48, 60, 70, 80, 98, 103, 106, 114, 136, 145, 159, 165, 168, 176, 192, 213, 230, 232]
\ No newline at end of file
......@@ -33,13 +33,14 @@ T__31=32
T__32=33
T__33=34
T__34=35
COMMENT=36
ID=37
REAL=38
INT=39
STRING=40
WS=41
EOL=42
T__35=36
COMMENT=37
ID=38
REAL=39
INT=40
STRING=41
WS=42
EOL=43
'__qpu__'=1
'void'=2
'('=3
......@@ -59,19 +60,20 @@ EOL=42
';'=17
'return'=18
'for'=19
'<'=20
'>'=21
'++'=22
'--'=23
'+'=24
'-'=25
'*'=26
'/'=27
'^'=28
'pi'=29
'sin'=30
'cos'=31
'tan'=32
'exp'=33
'ln'=34
'sqrt'=35
'auto'=20
'<'=21
'>'=22
'++'=23
'--'=24
'+'=25
'-'=26
'*'=27
'/'=28
'^'=29
'pi'=30
'sin'=31
'cos'=32
'tan'=33
'exp'=34
'ln'=35
'sqrt'=36
This diff is collapsed.
......@@ -18,8 +18,8 @@ public:
T__14 = 15, T__15 = 16, T__16 = 17, T__17 = 18, T__18 = 19, T__19 = 20,
T__20 = 21, T__21 = 22, T__22 = 23, T__23 = 24, T__24 = 25, T__25 = 26,
T__26 = 27, T__27 = 28, T__28 = 29, T__29 = 30, T__30 = 31, T__31 = 32,
T__32 = 33, T__33 = 34, T__34 = 35, COMMENT = 36, ID = 37, REAL = 38,
INT = 39, STRING = 40, WS = 41, EOL = 42
T__32 = 33, T__33 = 34, T__34 = 35, T__35 = 36, COMMENT = 37, ID = 38,
REAL = 39, INT = 40, STRING = 41, WS = 42, EOL = 43
};
xasmLexer(antlr4::CharStream *input);
......
......@@ -19,6 +19,7 @@ null
';'
'return'
'for'
'auto'
'<'
'>'
'++'
......@@ -80,6 +81,7 @@ null
null
null
null
null
COMMENT
ID
REAL
......@@ -124,6 +126,7 @@ T__31
T__32
T__33
T__34
T__35
COMMENT
ID
REAL
......@@ -140,4 +143,4 @@ mode names:
DEFAULT_MODE
atn:
[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 44, 281, 8, 1, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 4, 29, 9, 29, 4, 30, 9, 30, 4, 31, 9, 31, 4, 32, 9, 32, 4, 33, 9, 33, 4, 34, 9, 34, 4, 35, 9, 35, 4, 36, 9, 36, 4, 37, 9, 37, 4, 38, 9, 38, 4, 39, 9, 39, 4, 40, 9, 40, 4, 41, 9, 41, 4, 42, 9, 42, 4, 43, 9, 43, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 7, 3, 7, 3, 8, 3, 8, 3, 9, 3, 9, 3, 10, 3, 10, 3, 11, 3, 11, 3, 12, 3, 12, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 3, 20, 3, 21, 3, 21, 3, 22, 3, 22, 3, 23, 3, 23, 3, 23, 3, 24, 3, 24, 3, 24, 3, 25, 3, 25, 3, 26, 3, 26, 3, 27, 3, 27, 3, 28, 3, 28, 3, 29, 3, 29, 3, 30, 3, 30, 3, 30, 3, 31, 3, 31, 3, 31, 3, 31, 3, 32, 3, 32, 3, 32, 3, 32, 3, 33, 3, 33, 3, 33, 3, 33, 3, 34, 3, 34, 3, 34, 3, 34, 3, 35, 3, 35, 3, 35, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 37, 3, 37, 3, 37, 3, 37, 7, 37, 225, 10, 37, 12, 37, 14, 37, 228, 11, 37, 3, 37, 3, 37, 3, 38, 3, 38, 7, 38, 234, 10, 38, 12, 38, 14, 38, 237, 11, 38, 3, 38, 3, 38, 7, 38, 241, 10, 38, 12, 38, 14, 38, 244, 11, 38, 3, 38, 3, 38, 7, 38, 248, 10, 38, 12, 38, 14, 38, 251, 11, 38, 5, 38, 253, 10, 38, 3, 39, 3, 39, 3, 39, 3, 39, 3, 40, 6, 40, 260, 10, 40, 13, 40, 14, 40, 261, 3, 41, 3, 41, 7, 41, 266, 10, 41, 12, 41, 14, 41, 269, 11, 41, 3, 41, 3, 41, 3, 42, 3, 42, 3, 42, 3, 42, 3, 43, 5, 43, 278, 10, 43, 3, 43, 3, 43, 2, 2, 44, 3, 3, 5, 4, 7, 5, 9, 6, 11, 7, 13, 8, 15, 9, 17, 10, 19, 11, 21, 12, 23, 13, 25, 14, 27, 15, 29, 16, 31, 17, 33, 18, 35, 19, 37, 20, 39, 21, 41, 22, 43, 23, 45, 24, 47, 25, 49, 26, 51, 27, 53, 28, 55, 29, 57, 30, 59, 31, 61, 32, 63, 33, 65, 34, 67, 35, 69, 36, 71, 37, 73, 38, 75, 39, 77, 40, 79, 41, 81, 42, 83, 43, 85, 44, 3, 2, 9, 4, 2, 12, 12, 15, 15, 3, 2, 99, 124, 6, 2, 50, 59, 67, 92, 97, 97, 99, 124, 3, 2, 67, 92, 4, 2, 67, 92, 99, 124, 3, 2, 36, 36, 5, 2, 11, 12, 15, 15, 34, 34, 2, 289, 2, 3, 3, 2, 2, 2, 2, 5, 3, 2, 2, 2, 2, 7, 3, 2, 2, 2, 2, 9, 3, 2, 2, 2, 2, 11, 3, 2, 2, 2, 2, 13, 3, 2, 2, 2, 2, 15, 3, 2, 2, 2, 2, 17, 3, 2, 2, 2, 2, 19, 3, 2, 2, 2, 2, 21, 3, 2, 2, 2, 2, 23, 3, 2, 2, 2, 2, 25, 3, 2, 2, 2, 2, 27, 3, 2, 2, 2, 2, 29, 3, 2, 2, 2, 2, 31, 3, 2, 2, 2, 2, 33, 3, 2, 2, 2, 2, 35, 3, 2, 2, 2, 2, 37, 3, 2, 2, 2, 2, 39, 3, 2, 2, 2, 2, 41, 3, 2, 2, 2, 2, 43, 3, 2, 2, 2, 2, 45, 3, 2, 2, 2, 2, 47, 3, 2, 2, 2, 2, 49, 3, 2, 2, 2, 2, 51, 3, 2, 2, 2, 2, 53, 3, 2, 2, 2, 2, 55, 3, 2, 2, 2, 2, 57, 3, 2, 2, 2, 2, 59, 3, 2, 2, 2, 2, 61, 3, 2, 2, 2, 2, 63, 3, 2, 2, 2, 2, 65, 3, 2, 2, 2, 2, 67, 3, 2, 2, 2, 2, 69, 3, 2, 2, 2, 2, 71, 3, 2, 2, 2, 2, 73, 3, 2, 2, 2, 2, 75, 3, 2, 2, 2, 2, 77, 3, 2, 2, 2, 2, 79, 3, 2, 2, 2, 2, 81, 3, 2, 2, 2, 2, 83, 3, 2, 2, 2, 2, 85, 3, 2, 2, 2, 3, 87, 3, 2, 2, 2, 5, 95, 3, 2, 2, 2, 7, 100, 3, 2, 2, 2, 9, 102, 3, 2, 2, 2, 11, 107, 3, 2, 2, 2, 13, 109, 3, 2, 2, 2, 15, 111, 3, 2, 2, 2, 17, 113, 3, 2, 2, 2, 19, 115, 3, 2, 2, 2, 21, 117, 3, 2, 2, 2, 23, 119, 3, 2, 2, 2, 25, 121, 3, 2, 2, 2, 27, 123, 3, 2, 2, 2, 29, 127, 3, 2, 2, 2, 31, 134, 3, 2, 2, 2, 33, 140, 3, 2, 2, 2, 35, 160, 3, 2, 2, 2, 37, 162, 3, 2, 2, 2, 39, 169, 3, 2, 2, 2, 41, 173, 3, 2, 2, 2, 43, 175, 3, 2, 2, 2, 45, 177, 3, 2, 2, 2, 47, 180, 3, 2, 2, 2, 49, 183, 3, 2, 2, 2, 51, 185, 3, 2, 2, 2, 53, 187, 3, 2, 2, 2, 55, 189, 3, 2, 2, 2, 57, 191, 3, 2, 2, 2, 59, 193, 3, 2, 2, 2, 61, 196, 3, 2, 2, 2, 63, 200, 3, 2, 2, 2, 65, 204, 3, 2, 2, 2, 67, 208, 3, 2, 2, 2, 69, 212, 3, 2, 2, 2, 71, 215, 3, 2, 2, 2, 73, 220, 3, 2, 2, 2, 75, 252, 3, 2, 2, 2, 77, 254, 3, 2, 2, 2, 79, 259, 3, 2, 2, 2, 81, 263, 3, 2, 2, 2, 83, 272, 3, 2, 2, 2, 85, 277, 3, 2, 2, 2, 87, 88, 7, 97, 2, 2, 88, 89, 7, 97, 2, 2, 89, 90, 7, 115, 2, 2, 90, 91, 7, 114, 2, 2, 91, 92, 7, 119, 2, 2, 92, 93, 7, 97, 2, 2, 93, 94, 7, 97, 2, 2, 94, 4, 3, 2, 2, 2, 95, 96, 7, 120, 2, 2, 96, 97, 7, 113, 2, 2, 97, 98, 7, 107, 2, 2, 98, 99, 7, 102, 2, 2, 99, 6, 3, 2, 2, 2, 100, 101, 7, 42, 2, 2, 101, 8, 3, 2, 2, 2, 102, 103, 7, 115, 2, 2, 103, 104, 7, 100, 2, 2, 104, 105, 7, 107, 2, 2, 105, 106, 7, 118, 2, 2, 106, 10, 3, 2, 2, 2, 107, 108, 7, 46, 2, 2, 108, 12, 3, 2, 2, 2, 109, 110, 7, 43, 2, 2, 110, 14, 3, 2, 2, 2, 111, 112, 7, 125, 2, 2, 112, 16, 3, 2, 2, 2, 113, 114, 7, 127, 2, 2, 114, 18, 3, 2, 2, 2, 115, 116, 7, 93, 2, 2, 116, 20, 3, 2, 2, 2, 117, 118, 7, 40, 2, 2, 118, 22, 3, 2, 2, 2, 119, 120, 7, 63, 2, 2, 120, 24, 3, 2, 2, 2, 121, 122, 7, 95, 2, 2, 122, 26, 3, 2, 2, 2, 123, 124, 7, 107, 2, 2, 124, 125, 7, 112, 2, 2, 125, 126, 7, 118, 2, 2, 126, 28, 3, 2, 2, 2, 127, 128, 7, 102, 2, 2, 128, 129, 7, 113, 2, 2, 129, 130, 7, 119, 2, 2, 130, 131, 7, 100, 2, 2, 131, 132, 7, 110, 2, 2, 132, 133, 7, 103, 2, 2, 133, 30, 3, 2, 2, 2, 134, 135, 7, 104, 2, 2, 135, 136, 7, 110, 2, 2, 136, 137, 7, 113, 2, 2, 137, 138, 7, 99, 2, 2, 138, 139, 7, 118, 2, 2, 139, 32, 3, 2, 2, 2, 140, 141, 7, 117, 2, 2, 141, 142, 7, 118, 2, 2, 142, 143, 7, 102, 2, 2, 143, 144, 7, 60, 2, 2, 144, 145, 7, 60, 2, 2, 145, 146, 7, 120, 2, 2, 146, 147, 7, 103, 2, 2, 147, 148, 7, 101, 2, 2, 148, 149, 7, 118, 2, 2, 149, 150, 7, 113, 2, 2, 150, 151, 7, 116, 2, 2, 151, 152, 7, 62, 2, 2, 152, 153, 7, 102, 2, 2, 153, 154, 7, 113, 2, 2, 154, 155, 7, 119, 2, 2, 155, 156, 7, 100, 2, 2, 156, 157, 7, 110, 2, 2, 157, 158, 7, 103, 2, 2, 158, 159, 7, 64, 2, 2, 159, 34, 3, 2, 2, 2, 160, 161, 7, 61, 2, 2, 161, 36, 3, 2, 2, 2, 162, 163, 7, 116, 2, 2, 163, 164, 7, 103, 2, 2, 164, 165, 7, 118, 2, 2, 165, 166, 7, 119, 2, 2, 166, 167, 7, 116, 2, 2, 167, 168, 7, 112, 2, 2, 168, 38, 3, 2, 2, 2, 169, 170, 7, 104, 2, 2, 170, 171, 7, 113, 2, 2, 171, 172, 7, 116, 2, 2, 172, 40, 3, 2, 2, 2, 173, 174, 7, 62, 2, 2, 174, 42, 3, 2, 2, 2, 175, 176, 7, 64, 2, 2, 176, 44, 3, 2, 2, 2, 177, 178, 7, 45, 2, 2, 178, 179, 7, 45, 2, 2, 179, 46, 3, 2, 2, 2, 180, 181, 7, 47, 2, 2, 181, 182, 7, 47, 2, 2, 182, 48, 3, 2, 2, 2, 183, 184, 7, 45, 2, 2, 184, 50, 3, 2, 2, 2, 185, 186, 7, 47, 2, 2, 186, 52, 3, 2, 2, 2, 187, 188, 7, 44, 2, 2, 188, 54, 3, 2, 2, 2, 189, 190, 7, 49, 2, 2, 190, 56, 3, 2, 2, 2, 191, 192, 7, 96, 2, 2, 192, 58, 3, 2, 2, 2, 193, 194, 7, 114, 2, 2, 194, 195, 7, 107, 2, 2, 195, 60, 3, 2, 2, 2, 196, 197, 7, 117, 2, 2, 197, 198, 7, 107, 2, 2, 198, 199, 7, 112, 2, 2, 199, 62, 3, 2, 2, 2, 200, 201, 7, 101, 2, 2, 201, 202, 7, 113, 2, 2, 202, 203, 7, 117, 2, 2, 203, 64, 3, 2, 2, 2, 204, 205, 7, 118, 2, 2, 205, 206, 7, 99, 2, 2, 206, 207, 7, 112, 2, 2, 207, 66, 3, 2, 2, 2, 208, 209, 7, 103, 2, 2, 209, 210, 7, 122, 2, 2, 210, 211, 7, 114, 2, 2, 211, 68, 3, 2, 2, 2, 212, 213, 7, 110, 2, 2, 213, 214, 7, 112, 2, 2, 214, 70, 3, 2, 2, 2, 215, 216, 7, 117, 2, 2, 216, 217, 7, 115, 2, 2, 217, 218, 7, 116, 2, 2, 218, 219, 7, 118, 2, 2, 219, 72, 3, 2, 2, 2, 220, 221, 7, 49, 2, 2, 221, 222, 7, 49, 2, 2, 222, 226, 3, 2, 2, 2, 223, 225, 10, 2, 2, 2, 224, 223, 3, 2, 2, 2, 225, 228, 3, 2, 2, 2, 226, 224, 3, 2, 2, 2, 226, 227, 3, 2, 2, 2, 227, 229, 3, 2, 2, 2, 228, 226, 3, 2, 2, 2, 229, 230, 5, 85, 43, 2, 230, 74, 3, 2, 2, 2, 231, 235, 9, 3, 2, 2, 232, 234, 9, 4, 2, 2, 233, 232, 3, 2, 2, 2, 234, 237, 3, 2, 2, 2, 235, 233, 3, 2, 2, 2, 235, 236, 3, 2, 2, 2, 236, 253, 3, 2, 2, 2, 237, 235, 3, 2, 2, 2, 238, 242, 9, 5, 2, 2, 239, 241, 9, 4, 2, 2, 240, 239, 3, 2, 2, 2, 241, 244, 3, 2, 2, 2, 242, 240, 3, 2, 2, 2, 242, 243, 3, 2, 2, 2, 243, 253, 3, 2, 2, 2, 244, 242, 3, 2, 2, 2, 245, 249, 9, 5, 2, 2, 246, 248, 9, 6, 2, 2, 247, 246, 3, 2, 2, 2, 248, 251, 3, 2, 2, 2, 249, 247, 3, 2, 2, 2, 249, 250, 3, 2, 2, 2, 250, 253, 3, 2, 2, 2, 251, 249, 3, 2, 2, 2, 252, 231, 3, 2, 2, 2, 252, 238, 3, 2, 2, 2, 252, 245, 3, 2, 2, 2, 253, 76, 3, 2, 2, 2, 254, 255, 5, 79, 40, 2, 255, 256, 7, 48, 2, 2, 256, 257, 5, 79, 40, 2, 257, 78, 3, 2, 2, 2, 258, 260, 4, 50, 59, 2, 259, 258, 3, 2, 2, 2, 260, 261, 3, 2, 2, 2, 261, 259, 3, 2, 2, 2, 261, 262, 3, 2, 2, 2, 262, 80, 3, 2, 2, 2, 263, 267, 7, 36, 2, 2, 264, 266, 10, 7, 2, 2, 265, 264, 3, 2, 2, 2, 266, 269, 3, 2, 2, 2, 267, 265, 3, 2, 2, 2, 267, 268, 3, 2, 2, 2, 268, 270, 3, 2, 2, 2, 269, 267, 3, 2, 2, 2, 270, 271, 7, 36, 2, 2, 271, 82, 3, 2, 2, 2, 272, 273, 9, 8, 2, 2, 273, 274, 3, 2, 2, 2, 274, 275, 8, 42, 2, 2, 275, 84, 3, 2, 2, 2, 276, 278, 7, 15, 2, 2, 277, 276, 3, 2, 2, 2, 277, 278, 3, 2, 2, 2, 278, 279, 3, 2, 2, 2, 279, 280, 7, 12, 2, 2, 280, 86, 3, 2, 2, 2, 11, 2, 226, 235, 242, 249, 252, 261, 267, 277, 3, 8, 2, 2]
\ No newline at end of file
[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 45, 288, 8, 1, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 4, 29, 9, 29, 4, 30, 9, 30, 4, 31, 9, 31, 4, 32, 9, 32, 4, 33, 9, 33, 4, 34, 9, 34, 4, 35, 9, 35, 4, 36, 9, 36, 4, 37, 9, 37, 4, 38, 9, 38, 4, 39, 9, 39, 4, 40, 9, 40, 4, 41, 9, 41, 4, 42, 9, 42, 4, 43, 9, 43, 4, 44, 9, 44, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 7, 3, 7, 3, 8, 3, 8, 3, 9, 3, 9, 3, 10, 3, 10, 3, 11, 3, 11, 3, 12, 3, 12, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 3, 20, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 22, 3, 22, 3, 23, 3, 23, 3, 24, 3, 24, 3, 24, 3, 25, 3, 25, 3, 25, 3, 26, 3, 26, 3, 27, 3, 27, 3, 28, 3, 28, 3, 29, 3, 29, 3, 30, 3, 30, 3, 31, 3, 31, 3, 31, 3, 32, 3, 32, 3, 32, 3, 32, 3, 33, 3, 33, 3, 33, 3, 33, 3, 34, 3, 34, 3, 34, 3, 34, 3, 35, 3, 35, 3, 35, 3, 35, 3, 36, 3, 36, 3, 36, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 38, 3, 38, 3, 38, 3, 38, 7, 38, 232, 10, 38, 12, 38, 14, 38, 235, 11, 38, 3, 38, 3, 38, 3, 39, 3, 39, 7, 39, 241, 10, 39, 12, 39, 14, 39, 244, 11, 39, 3, 39, 3, 39, 7, 39, 248, 10, 39, 12, 39, 14, 39, 251, 11, 39, 3, 39, 3, 39, 7, 39, 255, 10, 39, 12, 39, 14, 39, 258, 11, 39, 5, 39, 260, 10, 39, 3, 40, 3, 40, 3, 40, 3, 40, 3, 41, 6, 41, 267, 10, 41, 13, 41, 14, 41, 268, 3, 42, 3, 42, 7, 42, 273, 10, 42, 12, 42, 14, 42, 276, 11, 42, 3, 42, 3, 42, 3, 43, 3, 43, 3, 43, 3, 43, 3, 44, 5, 44, 285, 10, 44, 3, 44, 3, 44, 2, 2, 45, 3, 3, 5, 4, 7, 5, 9, 6, 11, 7, 13, 8, 15, 9, 17, 10, 19, 11, 21, 12, 23, 13, 25, 14, 27, 15, 29, 16, 31, 17, 33, 18, 35, 19, 37, 20, 39, 21, 41, 22, 43, 23, 45, 24, 47, 25, 49, 26, 51, 27, 53, 28, 55, 29, 57, 30, 59, 31, 61, 32, 63, 33, 65, 34, 67, 35, 69, 36, 71, 37, 73, 38, 75, 39, 77, 40, 79, 41, 81, 42, 83, 43, 85, 44, 87, 45, 3, 2, 9, 4, 2, 12, 12, 15, 15, 3, 2, 99, 124, 6, 2, 50, 59, 67, 92, 97, 97, 99, 124, 3, 2, 67, 92, 4, 2, 67, 92, 99, 124, 3, 2, 36, 36, 5, 2, 11, 12, 15, 15, 34, 34, 2, 296, 2, 3, 3, 2, 2, 2, 2, 5, 3, 2, 2, 2, 2, 7, 3, 2, 2, 2, 2, 9, 3, 2, 2, 2, 2, 11, 3, 2, 2, 2, 2, 13, 3, 2, 2, 2, 2, 15, 3, 2, 2, 2, 2, 17, 3, 2, 2, 2, 2, 19, 3, 2, 2, 2, 2, 21, 3, 2, 2, 2, 2, 23, 3, 2, 2, 2, 2, 25, 3, 2, 2, 2, 2, 27, 3, 2, 2, 2, 2, 29, 3, 2, 2, 2, 2, 31, 3, 2, 2, 2, 2, 33, 3, 2, 2, 2, 2, 35, 3, 2, 2, 2, 2, 37, 3, 2, 2, 2, 2, 39, 3, 2, 2, 2, 2, 41, 3, 2, 2, 2, 2, 43, 3, 2, 2, 2, 2, 45, 3, 2, 2, 2, 2, 47, 3, 2, 2, 2, 2, 49, 3, 2, 2, 2, 2, 51, 3, 2, 2, 2, 2, 53, 3, 2, 2, 2, 2, 55, 3, 2, 2, 2, 2, 57, 3, 2, 2, 2, 2, 59, 3, 2, 2, 2, 2, 61, 3, 2, 2, 2, 2, 63, 3, 2, 2, 2, 2, 65, 3, 2, 2, 2, 2, 67, 3, 2, 2, 2, 2, 69, 3, 2, 2, 2, 2, 71, 3, 2, 2, 2, 2, 73, 3, 2, 2, 2, 2, 75, 3, 2, 2, 2, 2, 77, 3, 2, 2, 2, 2, 79, 3, 2, 2, 2, 2, 81, 3, 2, 2, 2, 2, 83, 3, 2, 2, 2, 2, 85, 3, 2, 2, 2, 2, 87, 3, 2, 2, 2, 3, 89, 3, 2, 2, 2, 5, 97, 3, 2, 2, 2, 7, 102, 3, 2, 2, 2, 9, 104, 3, 2, 2, 2, 11, 109, 3, 2, 2, 2, 13, 111, 3, 2, 2, 2, 15, 113, 3, 2, 2, 2, 17, 115, 3, 2, 2, 2, 19, 117, 3, 2, 2, 2, 21, 119, 3, 2, 2, 2, 23, 121, 3, 2, 2, 2, 25, 123, 3, 2, 2, 2, 27, 125, 3, 2, 2, 2, 29, 129, 3, 2, 2, 2, 31, 136, 3, 2, 2, 2, 33, 142, 3, 2, 2, 2, 35, 162, 3, 2, 2, 2, 37, 164, 3, 2, 2, 2, 39, 171, 3, 2, 2, 2, 41, 175, 3, 2, 2, 2, 43, 180, 3, 2, 2, 2, 45, 182, 3, 2, 2, 2, 47, 184, 3, 2, 2, 2, 49, 187, 3, 2, 2, 2, 51, 190, 3, 2, 2, 2, 53, 192, 3, 2, 2, 2, 55, 194, 3, 2, 2, 2, 57, 196, 3, 2, 2, 2, 59, 198, 3, 2, 2, 2, 61, 200, 3, 2, 2, 2, 63, 203, 3, 2, 2, 2, 65, 207, 3, 2, 2, 2, 67, 211, 3, 2, 2, 2, 69, 215, 3, 2, 2, 2, 71, 219, 3, 2, 2, 2, 73, 222, 3, 2, 2, 2, 75, 227, 3, 2, 2, 2, 77, 259, 3, 2, 2, 2, 79, 261, 3, 2, 2, 2, 81, 266, 3, 2, 2, 2, 83, 270, 3, 2, 2, 2, 85, 279, 3, 2, 2, 2, 87, 284, 3, 2, 2, 2, 89, 90, 7, 97, 2, 2, 90, 91, 7, 97, 2, 2, 91, 92, 7, 115, 2, 2, 92, 93, 7, 114, 2, 2, 93, 94, 7, 119, 2, 2, 94, 95, 7, 97, 2, 2, 95, 96, 7, 97, 2, 2, 96, 4, 3, 2, 2, 2, 97, 98, 7, 120, 2, 2, 98, 99, 7, 113, 2, 2, 99, 100, 7, 107, 2, 2, 100, 101, 7, 102, 2, 2, 101, 6, 3, 2, 2, 2, 102, 103, 7, 42, 2, 2, 103, 8, 3, 2, 2, 2, 104, 105, 7, 115, 2, 2, 105, 106, 7, 100, 2, 2, 106, 107, 7, 107, 2, 2, 107, 108, 7, 118, 2, 2, 108, 10, 3, 2, 2, 2, 109, 110, 7, 46, 2, 2, 110, 12, 3, 2, 2, 2, 111, 112, 7, 43, 2, 2, 112, 14, 3, 2, 2, 2, 113, 114, 7, 125, 2, 2, 114, 16, 3, 2, 2, 2, 115, 116, 7, 127, 2, 2, 116, 18, 3, 2, 2, 2, 117, 118, 7, 93, 2, 2, 118, 20, 3, 2, 2, 2, 119, 120, 7, 40, 2, 2, 120, 22, 3, 2, 2, 2, 121, 122, 7, 63, 2, 2, 122, 24, 3, 2, 2, 2, 123, 124, 7, 95, 2, 2, 124, 26, 3, 2, 2, 2, 125, 126, 7, 107, 2, 2, 126, 127, 7, 112, 2, 2, 127, 128, 7, 118, 2, 2, 128, 28, 3, 2, 2, 2, 129, 130, 7, 102, 2, 2, 130, 131, 7, 113, 2, 2, 131, 132, 7, 119, 2, 2, 132, 133, 7, 100, 2, 2, 133, 134, 7, 110, 2, 2, 134, 135, 7, 103, 2, 2, 135, 30, 3, 2, 2, 2, 136, 137, 7, 104, 2, 2, 137, 138, 7, 110, 2, 2, 138, 139, 7, 113, 2, 2, 139, 140, 7, 99, 2, 2, 140, 141, 7, 118, 2, 2, 141, 32, 3, 2, 2, 2, 142, 143, 7, 117, 2, 2, 143, 144, 7, 118, 2, 2, 144, 145, 7, 102, 2, 2, 145, 146, 7, 60, 2, 2, 146, 147, 7, 60, 2, 2, 147, 148, 7, 120, 2, 2, 148, 149, 7, 103, 2, 2, 149, 150, 7, 101, 2, 2, 150, 151, 7, 118, 2, 2, 151, 152, 7, 113, 2, 2, 152, 153, 7, 116, 2, 2, 153, 154, 7, 62, 2, 2, 154, 155, 7, 102, 2, 2, 155, 156, 7, 113, 2, 2, 156, 157, 7, 119, 2, 2, 157, 158, 7, 100, 2, 2, 158, 159, 7, 110, 2, 2, 159, 160, 7, 103, 2, 2, 160, 161, 7, 64, 2, 2, 161, 34, 3, 2, 2, 2, 162, 163, 7, 61, 2, 2, 163, 36, 3, 2, 2, 2, 164, 165, 7, 116, 2, 2, 165, 166, 7, 103, 2, 2, 166, 167, 7, 118, 2, 2, 167, 168, 7, 119, 2, 2, 168, 169, 7, 116, 2, 2, 169, 170, 7, 112, 2, 2, 170, 38, 3, 2, 2, 2, 171, 172, 7, 104, 2, 2, 172, 173, 7, 113, 2, 2, 173, 174, 7, 116, 2, 2, 174, 40, 3, 2, 2, 2, 175, 176, 7, 99, 2, 2, 176, 177, 7, 119, 2, 2, 177, 178, 7, 118, 2, 2, 178, 179, 7, 113, 2, 2, 179, 42, 3, 2, 2, 2, 180, 181, 7, 62, 2, 2, 181, 44, 3, 2, 2, 2, 182, 183, 7, 64, 2, 2, 183, 46, 3, 2, 2, 2, 184, 185, 7, 45, 2, 2, 185, 186, 7, 45, 2, 2, 186, 48, 3, 2, 2, 2, 187, 188, 7, 47, 2, 2, 188, 189, 7, 47, 2, 2, 189, 50, 3, 2, 2, 2, 190, 191, 7, 45, 2, 2, 191, 52, 3, 2, 2, 2, 192, 193, 7, 47, 2, 2, 193, 54, 3, 2, 2, 2, 194, 195, 7, 44, 2, 2, 195, 56, 3, 2, 2, 2, 196, 197, 7, 49, 2, 2, 197, 58, 3, 2, 2, 2, 198, 199, 7, 96, 2, 2, 199, 60, 3, 2, 2, 2, 200, 201, 7, 114, 2, 2, 201, 202, 7, 107, 2, 2, 202, 62, 3, 2, 2, 2, 203, 204, 7, 117, 2, 2, 204, 205, 7, 107, 2, 2, 205, 206, 7, 112, 2, 2, 206, 64, 3, 2, 2, 2, 207, 208, 7, 101, 2, 2, 208, 209, 7, 113, 2, 2, 209, 210, 7, 117, 2, 2, 210, 66, 3, 2, 2, 2, 211, 212, 7, 118, 2, 2, 212, 213, 7, 99, 2, 2, 213, 214, 7, 112, 2, 2, 214, 68, 3, 2, 2, 2, 215, 216, 7, 103, 2, 2, 216, 217, 7, 122, 2, 2, 217, 218, 7, 114, 2, 2, 218, 70, 3, 2, 2, 2, 219, 220, 7, 110, 2, 2, 220, 221, 7, 112, 2, 2, 221, 72, 3, 2, 2, 2, 222, 223, 7, 117, 2, 2, 223, 224, 7, 115, 2, 2, 224, 225, 7, 116, 2, 2, 225, 226, 7, 118, 2, 2, 226, 74, 3, 2, 2, 2, 227, 228, 7, 49, 2, 2, 228, 229, 7, 49, 2, 2, 229, 233, 3, 2, 2, 2, 230, 232, 10, 2, 2, 2, 231, 230, 3, 2, 2, 2, 232, 235, 3, 2, 2, 2, 233, 231, 3, 2, 2, 2, 233, 234, 3, 2, 2, 2, 234, 236, 3, 2, 2, 2, 235, 233, 3, 2, 2, 2, 236, 237, 5, 87, 44, 2, 237, 76, 3, 2, 2, 2, 238, 242, 9, 3, 2, 2, 239, 241, 9, 4, 2, 2, 240, 239, 3, 2, 2, 2, 241, 244, 3, 2, 2, 2, 242, 240, 3, 2, 2, 2, 242, 243, 3, 2, 2, 2, 243, 260, 3, 2, 2, 2, 244, 242, 3, 2, 2, 2, 245, 249, 9, 5, 2, 2, 246, 248, 9, 4, 2, 2, 247, 246, 3, 2, 2, 2, 248, 251, 3, 2, 2, 2, 249, 247, 3, 2, 2, 2, 249, 250, 3, 2, 2, 2, 250, 260, 3, 2, 2, 2, 251, 249, 3, 2, 2, 2, 252, 256, 9, 5, 2, 2, 253, 255, 9, 6, 2, 2, 254, 253, 3, 2, 2, 2, 255, 258, 3, 2, 2, 2, 256, 254, 3, 2, 2, 2, 256, 257, 3, 2, 2, 2, 257, 260, 3, 2, 2, 2, 258, 256, 3, 2, 2, 2, 259, 238, 3, 2, 2, 2, 259, 245, 3, 2, 2, 2, 259, 252, 3, 2, 2, 2, 260, 78, 3, 2, 2, 2, 261, 262, 5, 81, 41, 2, 262, 263, 7, 48, 2, 2, 263, 264, 5, 81, 41, 2, 264, 80, 3, 2, 2, 2, 265, 267, 4, 50, 59, 2, 266, 265, 3, 2, 2, 2, 267, 268, 3, 2, 2, 2, 268, 266, 3, 2, 2, 2, 268, 269, 3, 2, 2, 2, 269, 82, 3, 2, 2, 2, 270, 274, 7, 36, 2, 2, 271, 273, 10, 7, 2, 2, 272, 271, 3, 2, 2, 2, 273, 276, 3, 2, 2, 2, 274, 272, 3, 2, 2, 2, 274, 275, 3, 2, 2, 2, 275, 277, 3, 2, 2, 2, 276, 274, 3, 2, 2, 2, 277, 278, 7, 36, 2, 2, 278, 84, 3, 2, 2, 2, 279, 280, 9, 8, 2, 2, 280, 281, 3, 2, 2, 2, 281, 282, 8, 43, 2, 2, 282, 86, 3, 2, 2, 2, 283, 285, 7, 15, 2, 2, 284, 283, 3, 2, 2, 2, 284, 285, 3, 2, 2, 2, 285, 286, 3, 2, 2, 2, 286, 287, 7, 12, 2, 2, 287, 88, 3, 2, 2, 2, 11, 2, 233, 242, 249, 256, 259, 268, 274, 284, 3, 8, 2, 2]
\ No newline at end of file
......@@ -33,13 +33,14 @@ T__31=32
T__32=33
T__33=34
T__34=35
COMMENT=36
ID=37
REAL=38
INT=39
STRING=40
WS=41
EOL=42
T__35=36
COMMENT=37
ID=38
REAL=39
INT=40
STRING=41
WS=42
EOL=43
'__qpu__'=1
'void'=2
'('=3
......@@ -59,19 +60,20 @@ EOL=42
';'=17
'return'=18
'for'=19
'<'=20
'>'=21
'++'=22
'--'=23
'+'=24
'-'=25
'*'=26
'/'=27
'^'=28
'pi'=29
'sin'=30
'cos'=31
'tan'=32
'exp'=33
'ln'=34
'sqrt'=35
'auto'=20
'<'=21
'>'=22
'++'=23
'--'=24
'+'=25
'-'=26
'*'=27
'/'=28
'^'=29
'pi'=30
'sin'=31
'cos'=32
'tan'=33
'exp'=34
'ln'=35
'sqrt'=36
This diff is collapsed.
......@@ -18,8 +18,8 @@ public:
T__14 = 15, T__15 = 16, T__16 = 17, T__17 = 18, T__18 = 19, T__19 = 20,
T__20 = 21, T__21 = 22, T__22 = 23, T__23 = 24, T__24 = 25, T__25 = 26,
T__26 = 27, T__27 = 28, T__28 = 29, T__29 = 30, T__30 = 31, T__31 = 32,
T__32 = 33, T__33 = 34, T__34 = 35, COMMENT = 36, ID = 37, REAL = 38,
INT = 39, STRING = 40, WS = 41, EOL = 42
T__32 = 33, T__33 = 34, T__34 = 35, T__35 = 36, COMMENT = 37, ID = 38,
REAL = 39, INT = 40, STRING = 41, WS = 42, EOL = 43
};
enum {
......
......@@ -87,12 +87,12 @@ TEST(XASMCompilerTester, checkHWEFor) {
auto compiler = xacc::getCompiler("xasm");
auto IR = compiler -> compile(R"([&](qbit q, std::vector<double> x) {
for (int i = 0; i < 2; i++) {
for (auto i = 0; i < 2; i++) {
Rx(q[i],x[i]);
Rz(q[i],x[2+i]);
}
CX(q[1],q[0]);
for (int i = 0; i < 2; i++) {
for (auto i = 0; i < 2; i++) {
Rx(q[i], x[i+4]);
Rz(q[i], x[i+4+2]);
Rx(q[i], x[i+4+4]);
......
......@@ -50,7 +50,7 @@ comment
forstmt
:
'for' '(' 'int' varname=id '=' start=INT ';' id comparator=('<' | '>') end=INT ';' id inc_or_dec=('++'|'--') ')' '{' forScope=statement+ '}'
'for' '(' ('int'|'auto') varname=id '=' start=INT ';' id comparator=('<' | '>') end=INT ';' id inc_or_dec=('++'|'--') ')' '{' forScope=statement+ '}'
;
instruction
......
......@@ -13,7 +13,7 @@
#include "nlopt_optimizer.hpp"
#include "nlopt.hpp"
#include "Utils.hpp"
#include "xacc.hpp"
#include <iostream>
using namespace std::placeholders;
......@@ -48,11 +48,12 @@ OptResult NLOptimizer::optimize(OptFunction &function) {
if (options.keyExists<double>("nlopt-ftol")) {
tol = options.get<double>("nlopt-ftol");
xacc::info("[NLOpt] function tolerance set to " + std::to_string(tol));
}
if (options.keyExists<int>("nlopt-maxeval")) {
maxeval = options.get<int>("nlopt-maxeval");
std::cout << "MAXEVAL: " << maxeval << "\n";
xacc::info("[NLOpt] max function evaluations set to " + std::to_string(maxeval));
}
std::vector<double> x(dim);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment