mbeckerle commented on a change in pull request #12: Revised daffodil-io module 
to require passing in a FormatInfo object.
URL: https://github.com/apache/incubator-daffodil/pull/12#discussion_r158077022
 
 

 ##########
 File path: 
daffodil-core/src/main/scala/edu/illinois/ncsa/daffodil/grammar/BitOrderMixin.scala
 ##########
 @@ -79,8 +87,29 @@ trait BitOrderMixin extends GrammarMixin with 
ByteOrderAnalysisMixin { self: Ter
         (isArray && !hasUniformBitOrderThroughout)))
   }
 
-  protected final lazy val bitOrderChange = prod("bitOrderChange", 
needsBitOrderChange) {
-    BitOrderChange(this)
+  //
+  //  protected final lazy val bitOrderChange = prod("bitOrderChange", 
needsBitOrderChange) {
+  //    BitOrderChange(this)
+  //  }
+
+  private lazy val checkByteAndBitOrder = {
+    val ev = new CheckByteAndBitOrderEv(termRuntimeData, defaultBitOrder)
+    ev.compile()
+    ev
   }
 
+  lazy val maybeCheckByteAndBitOrderEv =
+    if (optionByteOrderRaw.isDefined) Maybe(checkByteAndBitOrder)
 
 Review comment:
   Technically, I think if you have a format that is 100% textual, you wouldn't 
need it. I am not sure Daffodil achieves this though. It probably ends up being 
needed due to some incorrect assumption someplace. But I was trying to not 
assume the wrong thing here. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to