Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module stdxlexer;
- import std.range;
- struct JSONLexerRange(Input, alias appenderFactory = () => appender!string)
- {
- alias InternalInput = typeof(Input.init);
- InternalInput _input;
- }
- JSONValue toJSONValue()()
- {
- }
- struct JSONParserRange(Input)
- {
- Input _input;
- size_t _containerStackFill ;
- JSONParserNode _node;
- @property empty() { return _containerStackFill ; }
- const(JSONParserNode) front()
- {
- return _node;
- }
- void popFront()
- {
- }
- }
- struct JSONParserNode
- {
- }
- enum isJSONParserNodeInputRange(R) = isInputRange!R ;
- static assert(isJSONParserNodeInputRange!(JSONParserRange!(JSONLexerRange!string)));
- void main(string[] args)
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement