GithubHelp home page GithubHelp logo

mcrusher / cppreader Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18 KB

Two Readers conforming to a reader_interface, created for a 1 char look ahead lexer system

License: MIT License

C++ 100.00%
header-only cpp reader lookahead multifile

cppreader's Introduction

CppReader

Two Readers conforming to a _reader interface, created for a 1 char look ahead lexer system

Both files have Doc comments to explain how each function works for each implementation.

Reader - A single file reader, tracks Line and Char position for error reports.

StackedReader - Intended for C-style import systems where new files can be spliced in the middle. Unfortunately cannot be used to split individual tokens in half, though this is not useful nor is it good practice.

  • it was useful for general reading operations, and now supports continuing read operations between files.
  • Reads whole file, then discards it, if another file was underneath it, continues the read.

Update: It's a pretty bad version of the implementation, and has some bugs.

Update2: It's a much better version of the implementation, and should be a lot more straightforward and less buggy.

  • The main concern for bugs is in the StackedReader implementation, which is much more complex.

cppreader's People

Contributors

mcrusher avatar

Watchers

 avatar

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.