This repository has been archived by the owner on Jun 27, 2022. It is now read-only.
[Tool Proposal] New command parac analyse
for Pre-Processor and Syntax Analysis in one
#16
Labels
Milestone
This issue partly bases on the closed issue #9, which proposed the implementation of an additional handler in
parac syntax-check
, which should handle comments and remove them to avoid having to deal with them in the Antlr4 grammar files. (This issue is resolved and a comment-removal step was added)Summary:
Addition of a new command
parac analyse
, which would combine the syntax-check command with the Pre-Processor. This would mean that the command would process the directives as well and generate the Para-C source code itself. This would mean the checked source code, in the end, would be the processed version of the original source code.This could provide nicer checking, especially if certain macros should be checked if they work properly in certain cases. This also would avoid having to compile the program unnecessarily or implement in-code debug statements.
Notes:
parac syntax-check
andparac analyse
. Syntax-Check will completely ignore Pre-Processor directives and handle it as if it was a file where all directives were invisible. Analyse will handle the preprocessor directives, meaning the command line directives will have to be passed as well. (See 1.)The text was updated successfully, but these errors were encountered: