Skip to content

marcos-venicius/dev-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DC

 _____     ______     __   __      ______     ______     __    __     ______   __     __         ______     ______    
/\  __-.  /\  ___\   /\ \ / /     /\  ___\   /\  __ \   /\ "-./  \   /\  == \ /\ \   /\ \       /\  ___\   /\  == \   
\ \ \/\ \ \ \  __\   \ \ \'/      \ \ \____  \ \ \/\ \  \ \ \-./\ \  \ \  _-/ \ \ \  \ \ \____  \ \  __\   \ \  __<   
 \ \____-  \ \_____\  \ \__|       \ \_____\  \ \_____\  \ \_\ \ \_\  \ \_\    \ \_\  \ \_____\  \ \_____\  \ \_\ \_\ 
  \/____/   \/_____/   \/_/         \/_____/   \/_____/   \/_/  \/_/   \/_/     \/_/   \/_____/   \/_____/   \/_/ /_/ 

Current Supports

Unary operators

-1
+-1
--1

image

Basic math operators

+
-
/
*

image

We have the correct precedences

1 + 2 * 3

image

Binary Operators

||
&&

image

Equality operators

==
!=

image

Special keywords

  • false Boolean - False
  • true Boolean - True

Special Repl commands

  • #showTree enable or disable the tree shown. image

  • #clear clear the screen

  • #exit ok, just exit

Small support for diagnostics

image

Todo

  • create an api for the Comman project, to expose only the needed resources

About

A compiler written in C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages