From 764aabee2e464675a3840e1983ba44b65562c89a Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 8 Apr 2014 12:26:08 +0000
Subject: [PATCH] print parser symbols with "-check" command line option

---
 Common/Gmsh.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Common/Gmsh.cpp b/Common/Gmsh.cpp
index bec4c82f0a..3d2b184b62 100644
--- a/Common/Gmsh.cpp
+++ b/Common/Gmsh.cpp
@@ -14,6 +14,7 @@
 #include "OpenFile.h"
 #include "CreateFile.h"
 #include "Options.h"
+#include "Parser.h"
 #include "CommandLine.h"
 #include "OS.h"
 #include "Context.h"
@@ -219,6 +220,10 @@ int GmshBatch()
   }
   else if(CTX::instance()->batch == -2){
     GModel::current()->checkMeshCoherence(CTX::instance()->geom.tolerance);
+    std::vector<std::string> s;
+    PrintParserSymbols(0, s);
+    for(unsigned int i = 0; i < s.size(); i++)
+      Msg::Direct("%s", s[i].c_str());
   }
   else if(CTX::instance()->batch == -1){
     CreateOutputFile(CTX::instance()->outputFileName,
-- 
GitLab