Debian Codegraph @

tests/snippets/awk/test_ternary.txt

raw
1 ---input---
2 BEGIN {a = 5;b=6; print (a==b)? "a==b" : "a!=b"}
3
4 ---tokens---
5 'BEGIN' Name.Builtin
6 ' ' Text
7 '{' Punctuation
8 'a' Name.Other
9 ' ' Text
10 '=' Operator
11 ' ' Text
12 '5' Literal.Number.Integer
13 ';' Punctuation
14 'b' Name.Other
15 '=' Operator
16 '6' Literal.Number.Integer
17 ';' Punctuation
18 ' ' Text
19 'print' Keyword.Reserved
20 ' ' Text
21 '(' Punctuation
22 'a' Name.Other
23 '==' Operator
24 'b' Name.Other
25 ')' Punctuation
26 '?' Operator
27 ' ' Text
28 '"a==b"' Literal.String.Double
29 ' ' Text
30 ':' Operator
31 ' ' Text
32 '"a!=b"' Literal.String.Double
33 '}' Punctuation
34 '\n' Text