Advertisement
Guest User

Untitled

a guest
Apr 8th, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.73 KB | None | 0 0
  1. module stdxlexer;
  2. import std.range;
  3.  
  4. struct JSONLexerRange(Input, alias appenderFactory = () => appender!string)
  5. {
  6.         alias InternalInput = typeof(Input.init);
  7.         InternalInput _input;
  8. }
  9.  
  10. JSONValue toJSONValue()()
  11. {
  12. }
  13.  
  14. struct JSONParserRange(Input)
  15. {
  16.     Input _input;
  17.     size_t _containerStackFill ;
  18.     JSONParserNode _node;
  19.    
  20.     @property empty() { return _containerStackFill ; }
  21.  
  22.     const(JSONParserNode) front()
  23.     {
  24.         return _node;
  25.     }
  26.  
  27.     void popFront()
  28.     {
  29.     }
  30. }
  31.  
  32. struct JSONParserNode
  33. {
  34. }
  35.  
  36. enum isJSONParserNodeInputRange(R) = isInputRange!R ;
  37.  
  38. static assert(isJSONParserNodeInputRange!(JSONParserRange!(JSONLexerRange!string)));
  39.  
  40. void main(string[] args)
  41. {
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement