Skip to content

oliora/batch_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batch Parser

MS batch file format parser written with Boost.Spirit. Created mainly as side effect of Boost.Spirit education. Tool parses a batch file and extracts a list of near all present commands and their arguments. The only useful purpose of this tool is to detect whether some file is a batch file :).

WIP!!!

Prerequisites

  • CMake version 2.8 or above
  • Boost version 1.41 or above (Note that only 1.51 was tested). You need only headers!
  • Your favourite dev tool (IDE or make or something) supporting at least C++03 (Note that only Visual Studio 2008 and Xcode 4.6 was tested)

How to build

  1. Set BOOST_ROOT environment variable to the path of Boost root.

  2. Generate solution/project for your favourite dev tool:

cd <batch_parser_dir>
mkdir workspace
cd workspace
cmake ..

For now you should have the solution/project generated under workspace subdirectory.

Note about -G option of CMake to choose dev tool to generate solution/project for.

  1. Build generated solution/project either with you favourite compiler or with CMake cmake --build . [--config Release|Debug].

License

Released to Public Domain.

This produc has absolutely no warranty for anything!

About

MS batch files parser written with Boost.Spirit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published