mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 09:23:52 -05:00
formatting
This commit is contained in:
21
README.md
21
README.md
@@ -5,15 +5,26 @@
|
||||
|
||||
# Compiler Explorer
|
||||
|
||||
Is an interactive compiler exploration website. Edit code in C, C++, C#, F#, Rust, Go, D, Haskell,
|
||||
Swift, Pascal, [ispc](https://ispc.github.io/), Python, Java, or any of the other [30+ supported languages](https://godbolt.org/api/languages) components, and see how that code looks after being compiled in real
|
||||
time.
|
||||
Is an interactive compiler exploration website. Edit code in C, C++, C#, F#, Rust, Go, D, Haskell, Swift, Pascal,
|
||||
[ispc](https://ispc.github.io/), Python, Java, or any of the other
|
||||
[30+ supported languages](https://godbolt.org/api/languages) components, and see how that code looks after being
|
||||
compiled in real time.
|
||||
|
||||
[Bug Report](https://github.com/compiler-explorer/compiler-explorer/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml&title=%5BBUG%5D%3A+) · [Compiler Request](https://github.com/compiler-explorer/compiler-explorer/issues/new?assignees=&labels=request%2Cnew-compilers&projects=&template=compiler_request.yml&title=%5BCOMPILER+REQUEST%5D%3A+) · [Feature Request](https://github.com/compiler-explorer/compiler-explorer/issues/new?assignees=&labels=request&projects=&template=feature_request.yml&title=%5BREQUEST%5D%3A+) · [Language Request](https://github.com/compiler-explorer/compiler-explorer/issues/new?assignees=&labels=request%2Cnew-language&projects=&template=language_request.yml&title=%5BLANGUAGE+REQUEST%5D%3A+) · [Library Request](https://github.com/compiler-explorer/compiler-explorer/issues/new?assignees=&labels=request%2Cnew-libs&projects=&template=library_request.yml&title=%5BLIB+REQUEST%5D%3A+) · [Report Vulnerability](https://github.com/compiler-explorer/compiler-explorer/security/advisories/new)
|
||||
[Bug Report](https://github.com/compiler-explorer/compiler-explorer/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml&title=%5BBUG%5D%3A+)
|
||||
·
|
||||
[Compiler Request](https://github.com/compiler-explorer/compiler-explorer/issues/new?assignees=&labels=request%2Cnew-compilers&projects=&template=compiler_request.yml&title=%5BCOMPILER+REQUEST%5D%3A+)
|
||||
·
|
||||
[Feature Request](https://github.com/compiler-explorer/compiler-explorer/issues/new?assignees=&labels=request&projects=&template=feature_request.yml&title=%5BREQUEST%5D%3A+)
|
||||
·
|
||||
[Language Request](https://github.com/compiler-explorer/compiler-explorer/issues/new?assignees=&labels=request%2Cnew-language&projects=&template=language_request.yml&title=%5BLANGUAGE+REQUEST%5D%3A+)
|
||||
·
|
||||
[Library Request](https://github.com/compiler-explorer/compiler-explorer/issues/new?assignees=&labels=request%2Cnew-libs&projects=&template=library_request.yml&title=%5BLIB+REQUEST%5D%3A+)
|
||||
· [Report Vulnerability](https://github.com/compiler-explorer/compiler-explorer/security/advisories/new)
|
||||
|
||||
# Overview
|
||||
|
||||
Multiple compilers are supported for each language, many different tools and visualizations are available, and the UI layout is configurable (thanks to [GoldenLayout](https://www.golden-layout.com/)).
|
||||
Multiple compilers are supported for each language, many different tools and visualizations are available, and the UI
|
||||
layout is configurable (thanks to [GoldenLayout](https://www.golden-layout.com/)).
|
||||
|
||||
Try out at [godbolt.org](https://godbolt.org), or [run your own local instance](#running-a-local-instance). An overview
|
||||
of what the site lets you achieve, why it's useful, and how to use it is
|
||||
|
||||
@@ -37,9 +37,11 @@ export class BaseInstructionSetInfo {
|
||||
}
|
||||
|
||||
isJmpInstruction(x: string) {
|
||||
return x.trim()[0] === 'j'
|
||||
|| !!x.match(/\bb\.*(eq|ne|cs|hs|cc|lo|hi|ls|ge|lt|gt|le|rge|rlt)?\b/)
|
||||
|| !!x.match(/(?:tbnz|tbz|cbnz|cbz)/);
|
||||
return (
|
||||
x.trim()[0] === 'j' ||
|
||||
!!x.match(/\bb\.*(eq|ne|cs|hs|cc|lo|hi|ls|ge|lt|gt|le|rge|rlt)?\b/) ||
|
||||
!!x.match(/(?:tbnz|tbz|cbnz|cbz)/)
|
||||
);
|
||||
}
|
||||
|
||||
getInstructionType(inst: string) {
|
||||
|
||||
@@ -47,14 +47,7 @@ export function definition(): monaco.languages.IMonarchLanguage {
|
||||
'then',
|
||||
'true',
|
||||
],
|
||||
standardTypes: [
|
||||
'bit',
|
||||
'int',
|
||||
'string',
|
||||
'dag',
|
||||
'bits',
|
||||
'list',
|
||||
],
|
||||
standardTypes: ['bit', 'int', 'string', 'dag', 'bits', 'list'],
|
||||
operators: [
|
||||
'!add',
|
||||
'!and',
|
||||
|
||||
Reference in New Issue
Block a user