Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
845 B

5 years ago
  1. // CodeMirror, copyright (c) by Marijn Haverbeke and others
  2. // Distributed under an MIT license: https://codemirror.net/LICENSE
  3. (function() {
  4. var mode = CodeMirror.getMode({indentUnit: 4}, "wast");
  5. function MT(name) {test.mode(name, mode, Array.prototype.slice.call(arguments, 1));}
  6. MT('number-test',
  7. '[number 0]',
  8. '[number 123]',
  9. '[number nan]',
  10. '[number inf]',
  11. '[number infinity]',
  12. '[number 0.1]',
  13. '[number 123.0]',
  14. '[number 12E+99]');
  15. MT('string-literals-test',
  16. '[string "foo"]',
  17. '[string "\\"foo\\""]',
  18. '[string "foo #\\"# bar"]');
  19. MT('atom-test',
  20. '[atom i32]',
  21. '[atom i64]',
  22. '[atom f32]',
  23. '[atom f64]');
  24. MT('keyword-test',
  25. '[keyword br]',
  26. '[keyword if]',
  27. '[keyword loop]',
  28. '[keyword i32.add]',
  29. '[keyword local.get]')
  30. })();