Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bad C parser

A C parser and compiler based on lalrpop A very limited subset of C is implemented, but you can use standard C libraries.

Grammar

For grammar, go to c.lalrpop file.

TODO

  • Fill in asm emission
  • Extern function declaration
  • Function declaration handling
  • Error handling
  • Nice error handling
  • Comment support
  • C preprocessor support
  • Optimization pass
  • Scopes

Some x86 defintions

Registers:

  • RBP - Base pointer - address of start of current stack frame
  • RSP - Stack pointer - address of start top of the stack

Resources:

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages