lgarithm / drawings

a ray tracing engine in C++
3 stars 0 forks source link

implement config/script parser #9

Open lgarithm opened 8 years ago

lgarithm commented 8 years ago

use std stringstream to implement parsec.

lgarithm commented 8 years ago

@x1957 RFC, a VR modeling language: https://github.com/lgarithm/drawings/wiki/Rey#script

x1957 commented 8 years ago

I'm sorry, I notice this pr too late. The language's syntax are very simple, I think it's easy to implement.

lgarithm commented 8 years ago

Yes, it's a good chance to try c++ regex and iostream.

stringsream is very close to parsec.

So this also can be done purely in c++. On Fri, 15 Apr 2016 at 10:25, x1957 notifications@github.com wrote:

I'm sorry, I notice this pr too late. The language's syntax are very simple, I think it's easy to implement.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lgarithm/drawings/issues/9#issuecomment-210380797

x1957 commented 8 years ago

stringstream close to parsec?

lgarithm commented 8 years ago

it should be easy to impl parsec with http://en.cppreference.com/w/cpp/io/basic_stringstream