Code Monkey home page Code Monkey logo

lua's People

Contributors

tsatke avatar

Stargazers

 avatar  avatar

Watchers

 avatar

lua's Issues

engine: stdlib

  • _VERSION
  • assert
  • collectgarbage
  • dofile
  • error
  • getmetatable
  • ipairs (#15)
  • load (#16)
  • loadfile (#17)
  • next (#14)
  • pairs (#8)
  • pcall
  • print
  • rawequal (#9)
  • rawget (#10)
  • rawlen (#11)
  • rawset (#12)
  • require (#13)
  • select (#7)
  • setmetatable
  • tonumber (#6)
  • tostring
  • type
  • xpcall (#5)

Then, lastly

  • add tests for above functions

parser: implement streaming scanner

Is your feature request related to a problem? Please describe.
Currently, only an in-memory scanner is available, which loads all content into memory and then parses.

Describe the solution you'd like
A scanner that reads fixed size chunks and creates tokens from these chunks (basically, a buffered scanner).

Additional context
Everything is pretty trivial, until it comes to the n-lookahead (or check, as it's called in this codebase).
If the string that should be checked would cross chunk borders, a new chunk would have to be loaded, and then maybe unloaded, if the check was unsuccessful. This means, that everything has to be done manually in this method, consume, lookahead etc. Everything has to use custom offsets, relative to the current buffer, then switch to an offset relative to the next buffer etc.

parser: create a lua parser

Create a very basic parser for Lua.

Strings should be kept especially simple in the beginning, i.e. either be enclosed in ' or ". No escapes and no multiline is needed in the beginning.

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.