SforzandoCF

j2scc statements

Jan 20th, 2026 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.11 KB | None | 0 0
  1. 1. expressions
  2.     1.1. literal expressions
  3.         1.1.1. decimal literal ("([0-9]+)")
  4.         1.1.2. hex literal ("0x([0-9a-fA-F]+)")
  5.         1.1.3. binary literal ("0b([01]+)")
  6.         1.1.4. octal literal ("0o?([0-7]+)")
  7.         1.1.5. string literal ("(?<qout>[\"']).+\\<quot>")
  8.     1.2. initialization expressions
  9.         1.2.1. struct initialization ("new (\\w+)\\(((?:.+?, )*.+)?\\)")
  10.     1.3. named data expressions
  11.         1.3.1. field reference ("(\\w+)")
  12.         1.3.2. struct member reference ("(.+)\\.(\\w+)")
  13.     1.4. unary expressions
  14.         1.4.1. prefix increment ("++(.+)")
  15.         1.4.2. postfix increment ("(.+)++")
  16.         1.4.3. prefix decrement ("--(.+)")
  17.         1.4.4. postfix decrement ("(.+)--")
  18.         1.4.5. inversion ("!(.+)")
  19.     1.5. binary expressions
  20.         1.5.1. relational comparison ("(.+) ?((?:[!=\\<\\>]=)|(?:[\\<\\>])) ?(.+)")
  21.         1.5.2. arithmetic / bitwise operation ("(.+) ?([+-*/%&|^]) ?(.+)")
  22.         1.5.3. shift operation (".+ ?((?:\\<\\<)|(?:\\>\\>)) ?.+")
  23.         1.5.4. assignment ("(.+) ?= ?.+")
  24.         1.5.5. arithmetic / bitwise operative assignment ("(.+) ?([+-*/%&|^])= ?(.+)")
  25.         1.5.6. shift operative assignment ("(.+) ?((?:\\<\\<)|(?:\\>\\>))= ?(.+)")
  26.     1.6. ternary expressions
  27.         1.6.1. conditional expression ("(.+) ?\\? ?(.+) ?\\: ?(.+)")
  28.     1.7. parenthesized expressions
  29.         1.7.1. type cast expression ("\\((\\w+)\\) ?(.+)")
  30.         1.7.2. method invocation expression ("(\\w+)\\(((?:.+?, )*.+)?\\)")
  31. 2. statements
  32.     2.1. expression statements
  33.         2.1.1. expression evaluation
  34.     2.2. flow control statements
  35.         2.2.1. if statement ("if ?\\((.+)\\)(?: ?\\{)?")
  36.         2.2.2. for statement ("for ?\\((.+), (.+), (.+)\\)(?: ?\\{)?")
  37.         2.2.3. while statement ("while ?\\((.+)\\)(?: ?\\{)?")
  38.         2.2.4. label statement ("(\\w+): ?\\{")
  39.         2.2.5. switch statement ("switch ?\\((.+)\\) ?\\{")
  40.     2.3. labeled statements
  41.         2.3.1. return statement ("return(?: (.+))?(?: if (.+))?")
  42.         2.3.2. exit statement ("exit(?: if (.+))?")
  43.         2.3.3. wait statement ("wait(?: if (.+))?")
  44.         2.3.4. jump statement ("jump (\\w+)(?: if (.+))?")
  45.         2.3.5. break statement ("break(?: (\\w+))(?: if (.+))?")
  46.         2.3.6. continue statement ("continue(?: (\\w+))(?: if (.+))?")
  47.         2.3.7. case statement ("case (.+)\\: ?\\{")
Advertisement
Add Comment
Please, Sign In to add comment