Commit f8356cb5 by Harish Butani

json for ThriftDef

parent b8eecb20
...@@ -428,7 +428,7 @@ class ThriftParser extends StandardTokenParsers with ThriftKeywords with ThriftT ...@@ -428,7 +428,7 @@ class ThriftParser extends StandardTokenParsers with ThriftKeywords with ThriftT
def header = INCLUDE ~> stringLit ^^ { case s => new ThriftDef(IncludeDef(s))} | def header = INCLUDE ~> stringLit ^^ { case s => new ThriftDef(IncludeDef(s))} |
CPP_INCL ~> stringLit ^^ { case s => new ThriftDef(CppIncludeDef(s))} | CPP_INCL ~> stringLit ^^ { case s => new ThriftDef(CppIncludeDef(s))} |
NAMESPACE ~ ident ~ ident ^^ { case ns ~ t ~ n => new ThriftDef(NamespaceDef(THRIFT_LANG.OTHER, t, Some(n)))} | NAMESPACE ~ ident ~ ident ^^ { case ns ~ t ~ n => new ThriftDef(NamespaceDef(THRIFT_LANG.OTHER, n, Some(t)))} |
NAMESPACE ~ STAR ~ ident ^^ { case ns ~ s ~ i => new ThriftDef(NamespaceDef(THRIFT_LANG.STAR, i))} | NAMESPACE ~ STAR ~ ident ^^ { case ns ~ s ~ i => new ThriftDef(NamespaceDef(THRIFT_LANG.STAR, i))} |
CPP_NS ~ ident ^^ { case ns ~ i => new ThriftDef(NamespaceDef(THRIFT_LANG.CPP, i))} | CPP_NS ~ ident ^^ { case ns ~ i => new ThriftDef(NamespaceDef(THRIFT_LANG.CPP, i))} |
PHP_NS ~ ident ^^ { case ns ~ i => new ThriftDef(NamespaceDef(THRIFT_LANG.PHP, i))} | PHP_NS ~ ident ^^ { case ns ~ i => new ThriftDef(NamespaceDef(THRIFT_LANG.PHP, i))} |
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment