Add Elixir language support (#6081)

Hi, I am adding support for the Elixir language
(https://github.com/compiler-explorer/compiler-explorer/issues/3947)
I have done this so far. It is not perfect but at least is something I
can work with.
 
In Elixir you can write several modules in the same file, so I show the
different compile utins as a list.

It works locally but I don't know how to add the Elixir language to
[infra](https://github.com/compiler-explorer/infra/)

Some notes:
- I think Elixir's macro system may be a potential security issue
because I can run code during compilation.
- The decompiled code contains a reference to the file path on the
system machine.


![elixir_compiler](https://github.com/compiler-explorer/compiler-explorer/assets/11353602/59e46c98-646d-4275-9c03-e4097a4977ef)
This commit is contained in:
Andrea Tomasi
2024-02-06 03:54:01 +01:00
committed by GitHub
parent e7af366391
commit 1cacc9ce79
9 changed files with 114 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ const plugins: Webpack.WebpackPluginInstance[] = [
'solidity',
'scheme',
'objective-c',
'elixir',
],
filename: isDev ? '[name].worker.js' : `[name]${webpackJsHack}worker.[contenthash].js`,
}),