File: test_ternary.txt

package info (click to toggle)
pygments 2.18.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,184 kB
  • sloc: python: 103,327; javascript: 238; makefile: 142; sh: 84; lisp: 74
file content (34 lines) | stat: -rw-r--r-- 821 bytes parent folder | download
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
---input---
BEGIN {a = 5;b=6; print (a==b)? "a==b" : "a!=b"}

---tokens---
'BEGIN'       Name.Builtin
' '           Text
'{'           Punctuation
'a'           Name.Other
' '           Text
'='           Operator
' '           Text
'5'           Literal.Number.Integer
';'           Punctuation
'b'           Name.Other
'='           Operator
'6'           Literal.Number.Integer
';'           Punctuation
' '           Text
'print'       Keyword.Reserved
' '           Text
'('           Punctuation
'a'           Name.Other
'=='          Operator
'b'           Name.Other
')'           Punctuation
'?'           Operator
' '           Text
'"a==b"'      Literal.String.Double
' '           Text
':'           Operator
' '           Text
'"a!=b"'      Literal.String.Double
'}'           Punctuation
'\n'          Text