kusumotolab / kGenProg

A High-performance, High-extensibility and High-portability APR System
MIT License
48 stars 13 forks source link

0世代問題 #740

Closed RyokoIzuta closed 3 years ago

RyokoIzuta commented 4 years ago

入力コードが最初からコンパイルエラーを含む場合,configだけ出力して終了する.

$ kGP
2020-05-19 10:21:48 [main] [INFO]  KGenProgMain - 
==================== kGenProg Configuration ====================
configPath = kgenprog.toml
rootDir =  (set in config file)
...
logLevel = ALL (set in config file)
...
version = 1.6.1+
================================================================
$

以下のようにエラーメッセージとコンパイルエラー箇所をINFOレベルで指摘するようにする.

$ kGP
2020-05-19 10:21:48 [main] [INFO]  KGenProgMain - 
==================== kGenProg Configuration ====================
configPath = kgenprog.toml
rootDir =  (set in config file)
...
logLevel = ALL (set in config file)
...
version = 1.6.1+
================================================================
+ 2020-05-19 10:21:48 [main] [ERROR]  KGenProgMain - the given code is not buildable.
+ 2020-05-19 10:21:48 [main] [ERROR]  KGenProgMain - please input a runnable code.
+ 2020-05-19 10:21:48 [main] [INFO]  KGenProgMain - 
+ example.CloseToZero:30: エラー: この文に制御が移ることはありません
+                         if (n < 0) {
+                         ^
$