Skip to content

Nalmeder/C_Parser_From_Scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

C Parser

Compile on Commandline

To run, compile parser.c and lexical_for_parser.c

./compile.sh

if permissions needed, first run:

chmod +x compile.sh

then compile.

For completeness sake: the command to compile manually is simple.

gcc -o parser parser.c lexical_for_parser.c

Running a program

once compiled, the parser will take a text file as an input, for example:

./parser demoFunc.txt

Currently the only supported aspects of C code are those included as demo files, such as Return or Function calls. Things such as break statements - while parsed - do not execute any code.

Lastly, there are a lot of printed messages. Looking for anything meaningfull in there is nigh-hopeless unless you know what to look for in particular.

About

An upload of a C parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published