Advertisement
hakonhagland

regexp-grammar-c-output

Apr 9th, 2021
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. {
  2. C {
  3. FunctionWithoutParams {
  4. CodeBlock {
  5. Blocks {
  6. Block [
  7. [0] {
  8. Statement "int x = 10;"
  9. },
  10. [1] {
  11. IF {
  12. BoolExpr "x == 10",
  13. CodeBlock {
  14. Blocks {
  15. Block [
  16. [0] {
  17. Statement "printf("print statement");"
  18. },
  19. [1] {
  20. Statement "int y = 20;"
  21. },
  22. [2] {
  23. IF {
  24. BoolExpr "y == 20",
  25. CodeBlock {
  26. Blocks {
  27. Block [
  28. [0] {
  29. Statement "printf("y equals twenty");"
  30. }
  31. ]
  32. }
  33. }
  34. }
  35. }
  36. ]
  37. }
  38. }
  39. }
  40. }
  41. ]
  42. }
  43. },
  44. FunctionName "func",
  45. ReturnType "void"
  46. }
  47. }
  48. }
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement