This is a sample project to show case the LCA DSL and the associated IntelliJ plugin.
Adds support for a new domain-specific language targeting Life Cycle Analysis experts. The following features are available :
- EF 3.1 flows and characterization factors from the European Platform on Life Cycle Assessment
- Description of processes, intermediary and elementary flows, with parameters.
- Embedded inventory computation engine.
- Code navigation.
- Using IDE built-in plugin system:
- Settings/Preferences > Plugins > Marketplace > Manage plugin repositories > Add
https://plugins.jetbrains.com/plugins/alpha/list
- Settings/Preferences > Plugins > Marketplace > Search for "life cycle analysis as code" > Install Plugin
- Settings/Preferences > Plugins > Marketplace > Manage plugin repositories > Add
package carrot
process carrot_production {
params {
qElec = 3.0 kJ
}
products {
1 kg carrot
}
inputs {
qElec electricity
3 l water
}
emissions {
(57 percent*kg/kJ) * Qelec co2
}
}
process electricity_production {
products {
1 kJ electricity
}
emissions {
1.0 kg co2
}
}