Skip to content

HttoHu/mercc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mercc

Mercc is a simple C interpreter which derived from merdog. merdog

Basic Type

  • int (i32)
  • char (i8)
  • bool
  • double (r64) you can define pointers , arrays and structure by these simple type

Control Flow

  • if-else
  • while/for
  • swich

Some unsupported feature

  • stdlib-> malloc
  • union
  • most of C libs except for stdio.h string.h math.h
  • bit-fields
  • static keyword
  • some types (unsigned, short ,long and so on... unsigned will be finished in next version).
  • register keyword / violate keyword
  • and some other uncommon feature.

How to use

  1. using the following instruction, mercc should be added into the environment.
mercc filename
  1. check the verison
mercc -v
  1. You can download the Windows 10 version at microsoft app store.C interpreter, and the app don't support console input, but you can use pre_input
    #pre_input
    xxxx
    #end_pre_input

About Author

By HttoHu(胡远韬)

Contact: Email

About

A simplied-C interpreter based on merdog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages