Commit Graph
150 Commits
Author SHA1 Message Date
Jeremy Overesch 445eff5649 Add minimal TI-C2000 compiler support (#4625)
This adds the ability to use TI's C2000 compiler with basic directive filtering and assembly code parsing.
2023-04-05 11:24:47 -05:00
Matt Godbolt 54a99f6d51 Upgrade all minor versions; format; bump sonar and css minimizer (#4920) 2023-04-01 20:29:06 -05:00
zebrapurringandzebrapurring 34bbde880c Support configuring extra arguments for the demangler, objdumper and execution wrapper (#4883)
Some toolchains require passing non-standard, mandatory arguments to the
CLI tools in order to execute them (configuring licenses, selecting CPU
targets, etc.). This PR allows configuring extra command-line arguments
for the demangler, object dumper and the execution wrapper. The version
flag argument has been refactored into an array, so that more than one
argument can be passed, if necessary.

The changes are fully backwards compatible.

Co-authored-by: zebrapurring <>
2023-04-01 23:49:22 +02:00
Matt Godbolt a8f832f80c Bump to latest cypress (#4853)
Latest cypress:
- updated all the tests
- fixed up warnings
- got rid of isolation stuff, it's now isolated by default
- added simple docs
- added `--noLocal` to prevent any local config from screwing up when
testing locally
- store screenshot artifacts if things go wrong
2023-03-14 10:00:40 -05:00
Mats Jun LarsenandMatt Godbolt 633eb82d18 Transition to ECMAScript Modules (#4780)
Makes the Compiler Explorer app, and all the tooling ESM compatible.
Things that have been done:

1. The package.json has `type: module` now
2. All relative imports have a .js ending
3. All directory imports are now directory/index.js to comply with ESM
standards
4. Dependency node-graceful is now imported into tree, because the
package is broken under esm
5. Dependency p-queue has been bumped to 7.x with ESM support
6. Dependency profanities has been bumped to 3.x with ESM support
7. Webpack config is now both ESM and CommonJS compatible
8. Non-ESM compatible imports have been rewritten
9. ESLint configuration has been tweaked to not fail on .js imports
10. Mocha is now hacked together and ran with ts-node-esm
11. Webpack is now hacked together and ran with ts-node-esm
12. Webpack config is now ESM compatible, so that it can be used in the
dev server
13. Cypress code still runs commonjs, and has been excluded from the
tsconfig
14. All sinon mock tests have been commented out, because sinon module
mocks do not work with ESModules (because ESModules are immutable)

A lot of tests are now giving warnings/errors to stdout, yet still pass.
Docenizer codegenerator scripts have been updated, but I did not re-run
them, and instead just changed their code.

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-02-27 18:06:38 -06:00
Jeremy Rifkin 342427ecde Tsify generate_site_template_screenshots.js (#4708)
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
2023-02-10 14:13:48 -05:00
Patrick Quist 70c262e33d Update turboc.properties 2023-02-02 20:44:45 +01:00
Patrick Quist 3ea46d92d4 Update turboc.properties 2023-02-02 20:42:18 +01:00
Mats Jun Larsen 39b81c963f Tsify asm-docs-tests to typescript with utils (#4670) 2023-01-31 22:00:48 +01:00
Matt Godbolt d63e171e57 Update and fix link to MS privacy policy (#4638) 2023-01-24 16:40:45 -06:00
Jeremy Rifkin 07f37abe76 The War of The Types (#4490) 2023-01-13 19:22:25 -05:00
Marc Poulhiès 69055681d9 Support for compiling to binary object (#3232) 2023-01-11 19:39:25 +01:00
Jeremy Rifkin cb4157e186 Two quick markdown formatting changes prettier performed 2022-12-28 08:51:30 -07:00
Matt GodboltandMats Jun Larsen b6f8713ec0 2023 Roadmap (#4501)
* 2023 Roadmap (draft for now)

Co-authored-by: Mats Jun Larsen <me@supergrecko.com>
2022-12-27 18:46:15 -06:00
Rubén Rincón Blanco 2e85575145 Add note about API not supporting external files (#4483) 2022-12-24 19:46:45 +01:00
Patrick Quist 149ee2db06 Update AddingALibrary.md 2022-12-18 21:21:59 +01:00
Patrick Quist f4cbb6b2f7 build command has changed 2022-12-03 16:43:47 +01:00
Jeremy Rifkin 2e844e9ef5 Make docenizer naming more consistent (#4387) 2022-12-02 12:16:42 -05:00
partouf 3f36aa96cb formatting 2022-10-12 18:07:44 +02:00
Jackson Machado 2bc257d89d docs(api): improved clientstate API documentation describing need for unicode conversion (#4114)
* docs(api): improved clientstate API documentation describing need for unicode conversion

* docs: improve CONTRIBUTORS.md
2022-10-10 13:40:06 +02:00
J. Ryan Stinnett 80dd763985 Add basic Racket support (#4098) 2022-10-05 09:32:45 +02:00
Bogdan Grigoruță 99baaee978 Add neovim plugin to docs (#4052) 2022-09-12 17:49:33 +02:00
tocic 8d7b271a6f Fix typos in docs (#4041) 2022-09-09 19:07:22 +02:00
Daan De Meyer 0519a6c6fd Drop StandardOutput=syslog from systemd docs (#3844)
StandardOutput=syslog is deprecated. Let's remove the setting altogether from the example so we rely on the default behavior instead which works exactly the same but doesn't trigger a warning from systemd.
2022-07-06 10:48:17 -05:00
Mats Larsen 540981ccef Port lib/languages.js to TypeScript (#3740) 2022-06-24 14:14:32 +02:00
Mats Larsen c165eb8cdb Mention where to find formatter type keys in API docs 2022-06-17 11:22:15 +02:00
Jeremy Rifkin ca7ebb4583 Updated site templates (#3767)
- Better naming of functions in existing templates
- Added LLVM Ir and Preprocessor templates
- Improved screenshot generation script
- Improved config file format (now the full URL can just be copied in instead of manually trimming the `https://godbolt.org/#`)
- Added `docs/AddingASiteTemplate.md`
2022-06-12 13:38:12 -04:00
Mats Larsen 02ba6faf1f Port lib/formatters to TypeScript (#3741) 2022-06-05 16:09:35 +02:00
Patrick Quist 67714e53ac Dosbox + Turbo C 2.01 support (#3627) 2022-05-13 01:18:03 +02:00
RabsRincon 723f23e73a Add missing ts and sol logos 2022-05-12 04:07:24 +02:00
Matt Godbolt f2c1e0bd31 The Grand Reformat (#3643)
* The Grand Reformat

- everything made prettier...literally
- some tweaks to include a few more files, including documentation
- minor changes to format style
- some tiny `// prettier-ignore` changes to keep a few things the way we like them
- a couple of super minor tweaks to embedded document types to ensure they format correctly
2022-05-09 23:13:50 -05:00
Marc Poulhiès c63c924ba6 Documentation fixlet (#3635)
GCC allows more than RTL for its IR dumps, reflect that.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2022-05-07 20:29:25 +02:00
Mats Larsen a1a1026a8e Move static/modes/_all.js to TypeScript (#3540) 2022-04-24 20:54:58 +02:00
cui fliterandRubén Rincón Blanco d0c0791bd0 fix some typos (#3509)
* fix some typos

Signed-off-by: cuishuang <imcusg@gmail.com>

* Update AboutLibraryPaths.md

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
2022-04-13 00:12:50 +02:00
Patrick Quist a6363ee3d4 Update AddingLinkableLibrary.md 2022-04-05 16:11:01 +02:00
Rubén Rincón Blanco 48eee26d2c Group some files to their own folders (#3384)
* Group some files to their own folders

In etc/scripts/, added disasms/, docenizers/, and util/ folders
In lib/, added mapfiles/, and parsers/ folders (+moved google.js to
shortener)
In static/, added widgets/ folder

Added cypress folder to .gitignore

* Address Matt's PR reviews

* Move new Pane renaming to folder
2022-02-22 00:18:21 +01:00
Patrick Quist 51047b6ad7 Frontend testing (#3169) 2022-02-04 18:35:04 +01:00
Mats Larsen 9b890b1656 Refactor handling of Assembly Documentation Providers (#3247) 2022-01-31 14:05:21 +01:00
Marc Poulhiès f947b73d5c Fix typo in doc
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2022-01-20 22:50:10 +01:00
John Adler fd2e4b0d02 Fix broken link to Monaco editor languages (#3261) 2022-01-17 09:22:35 +01:00
Gregory Anders 7f0bc32ae4 API: Change 'filters' option to be additive (#3206) 2021-12-28 15:35:46 +01:00
Mats Larsen 31a5333595 Add documentation for writing a new AssemblyDocumentation handler (#3161) 2021-12-09 01:08:58 +01:00
Headline 909cac58a7 Add new properties to formatter requests (#3067) 2021-10-28 14:46:41 +02:00
Mats Larsen 63b3c90dc2 Add Go formatting with Gofmt (#2966)
Fixes #1009

Supports formatting go code, using gofmt as backend.
2021-10-05 15:41:16 +02:00
Mats Larsen e7b9cbda91 Respect tab width and tabs/spaces settings for format APIs (#2957)
Site settings for tab width and tabs vs spaces are now being used when sent to the /api/format APIs.

This patch also includes some tiny internal refactoring on the bits related to the formatting API.
2021-09-26 23:56:39 +02:00
Mats LarsenandMatt Godbolt 53b9e0ac59 Support multiple formatter types for /api/format (#2818)
* Make /api/format handle multiple formatter types
* Ignore preferred style if the formatter is a 'one true style' formatter
* Add tests for base formatter
* Document /api/formats and /api/format/<formatter> usage
* Document adding a new formatter
* Update amazon config

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2021-08-24 18:46:38 -05:00
stoperro f726eadde5 * Fixed documentation for executionWrapper to state it's a Path, not Boolean (#2862) 2021-08-22 17:24:18 -05:00
RabsRincon 3f9cf032ce Use already existing site-logo.svg file 2021-08-10 15:44:10 +02:00
RabsRincon a5f440d5f8 Use site-logo.svg in the README 2021-08-10 11:10:54 +02:00
Rubén Rincón Blanco 34e793c4b2 Update AddingACompiler.md 2021-07-29 16:06:29 +02:00