mal-lang / coreLang

A probabilistic attack simulation language for the (abstract) IT domain
https://mal-lang.org/coreLang/
Other
10 stars 12 forks source link

Language modularization idea #4

Open maxwalls opened 4 years ago

maxwalls commented 4 years ago

Having a main coreLang.mal file:

#id: "org.mal-lang.corelang"
#version: "1.0.0"

include "core.mal"
include "vulnerability.mal"
include "virtualization.mal"

core.mal includes the basic stuff that should be self contained. vulnerability.mal adds support for vulnerabilities, and virtualization.maladds support for virtualization, but these are optional.

A language that extends coreLang can pick and choose what they want in their main file newLang.mal:

#id: "org.mal-lang.newlang"
#version: "1.2.3"

include "coreLang/core.mal"
inculde "coreLang/vulnerability.mal"
include "myStuff.mal"