Code Monkey home page Code Monkey logo

atlas's People

Contributors

feroldi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

atlas's Issues

Support for UTF-8 source code

The scanner currently (f89a9e2) assumes the source code is ASCII only. Supporting UTF-8 should increase the scanner's complexity, and so it should be done later rather than now, when more important features will already be implemented by then.

Parser implementation

This issue is used to keep track of the parser development.

Scope functionality

  • Be able to lookup declarations

Expressions

  • Primary expressions
  • Postfix expressions
  • Unary expressions
  • Cast expressions
  • Multiplicative expressions
  • Additive expressions
  • Shift expressions
  • Relational expressions
  • Equality expressions
  • AND expressions
  • XOR expressions
  • OR expressions
  • Logical AND expressions
  • Logical OR expressions
  • Conditional expressions
  • Assignment expressions
  • Expressions
  • Constant expressions

Declarations

  • Basic declarations
  • Declaration specifiers
  • Init declarator
  • Struct or union declarations
  • Enum declarations
  • Declarators
  • Abstract declarators
  • Typedef
  • Initializers
  • Static assert

Statements

  • Labeled statements
  • Compound statements
  • Expression statements
  • Selection statements
  • Iteration statements
  • Jump statements

External definitions

  • Function definitions
  • Translation units

Use some validation suite for C to check for standard conformance or bugs

There are two approaches to end-to-end validations that we wish to have: execution behavior, and assembly output. The first one compiles a set of C source codes, and runs the executable to check against an expected output (i.e., stdout, and stderr). The second one also compiles a set of C source codes, but instead of executing the program, it compares the assembly output against an expected one.

We could work on a validation suite ourselves for the first approach, but that sounds like a lot of work, and I'm no standard specialist either. We are inevitably going to work on the second approach ourselves, as that's a result of test driven development.

There are a few options out there that we could check out:

Scan trigraphs

Trigraphs aren't important right now though, so it should be taken care of in the far future.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.