Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. let x = 2
  2.  
  3. let y = "hello"
  4.  
  5. ////////////////////////////////////////////
  6.  
  7. Program {
  8. body: [
  9. VariableAssignment {
  10. identifier: Identifier {
  11. token: "x" @ (l0, c4),
  12. raw: "x",
  13. },
  14. assign_expression: Literal {
  15. token: "2" @ (l0, c8),
  16. lit_type: IntLiteral,
  17. value: "2",
  18. },
  19. },
  20. VariableAssignment {
  21. identifier: Identifier {
  22. token: "y" @ (l2, c4),
  23. raw: "y",
  24. },
  25. assign_expression: Literal {
  26. token: "\"hello\"" @ (l2, c8),
  27. lit_type: StringLiteral,
  28. value: "\"hello\"",
  29. },
  30. },
  31. ],
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement