2.2 KiB
2.2 KiB
AFH language
See documentation.
Compiling
Unfortunately there is something is wrong with Antlr4 tooling. According to https://github.com/kaby76/Antlr4BuildTasks/blob/master/Readme.md the
project is setup correctly however we are experiencing the following error:
ANT02: Went through the complete probe list looking for an Antlr4 tool jar, but could not find anything
To workaround it you can use one of the options:
-
To download it automatically during the build, uncomment this section within Rms.Risk.Mango.Language.csproj :
<!-- <PropertyGroup> <AntlrJarDir>$(SolutionDirectory)Resources/Antlr4</AntlrJarDir> <AntlrJarFile>antlr4-4.13.1-complete.jar</AntlrJarFile> <AntlrJarPath>$(AntlrJarDir)/$(AntlrJarFile)</AntlrJarPath> <AntlrDownloadUrl>https://www.antlr.org/download/antlr-4.13.2-complete.jar</AntlrDownloadUrl> </PropertyGroup> <Target Name="EnsureAntlr4Jar" BeforeTargets="Antlr4Compile"> <Message Text="Ensuring ANTLR jar exists at $(AntlrJarPath)" Importance="High" /> <MakeDir Directories="$(AntlrJarDir)" Condition="!Exists('$(AntlrJarDir)')" /> <Exec Condition="!Exists('$(AntlrJarPath)') AND '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'" Command="powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "Invoke-WebRequest -Uri $(AntlrDownloadUrl) -OutFile '$(AntlrJarPath)'"" /> <Exec Condition="!Exists('$(AntlrJarPath)') AND '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' != 'true'" Command="bash -c "curl -L -o '$(AntlrJarPath)' $(AntlrDownloadUrl)"" /> <Message Condition="Exists('$(AntlrJarPath)')" Text="ANTLR jar present: $(AntlrJarPath)" Importance="High" /> </Target> --> -
Download
jarhttps://www.antlr.org/download.html (direct link https://www.antlr.org/download/antlr-4.13.2-complete.jar) and put it into$(SolutionDirectory)Resources/Antlr4folder. Create one if needed.
Now it should work.