literals.txt 383 B

1234567891011121314151617181920212223242526272829
  1. let i = 14
  2. let i = -14
  3. let i = 1_000
  4. let i = 0b100
  5. let i = 0x1FF
  6. let i = 0o777
  7. let i64 = 128L
  8. let i64 = 0b10L
  9. let i32 = 32l
  10. let i32 = 0x12l
  11. let nat = 10n
  12. let nat = 0o644n
  13. let f = 5.
  14. let f = 5.1
  15. let f = 1e+1
  16. let f = 1e1
  17. let f = 1e-1
  18. let f = 1_024e12
  19. let f = 1L
  20. let b = true || false
  21. let l = []
  22. let a = [||]
  23. let () = ignore (b)
  24. let c = 'a'
  25. let c = '\xFF'
  26. let c = '\128'
  27. let c = '\n'