datachomper / c_parser

Simple program to parse c declarations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Summary:

Example:

> parse.exe "char * const *(*myfunc)()"
  Parsing char * const *(*myfunc)()
  myfunc is a pointer to a function returning pointer to read-only pointer to char

TODO:

  • Process and print array sizes
  • Process and translate function arguments
  • Translate into "Samuel L Jackson" speech
  • Add more test cases
  • Handle syntax errors

About

Simple program to parse c declarations


Languages

Language:C 96.7%Language:Shell 3.3%