hutcheb opened a new pull request #230:
URL: https://github.com/apache/plc4x/pull/230


   To be used in conjunction with the build-tools feature/opcua_native_client 
branch.
   
   - Implemented integration tests for the Java, Go and C build-util modules. 
       - This takes the test.mspec in the protocol-test module and generates 
code for each language
       - It then tries to compile these sources. (Ideally it would be good 
implement tests for the parsing/serializing but should probably wait for the 
test.mspec to be improved upon beforehand)
   
   - Implemented Enumerated Discriminators in mspec, e.g. [discriminator 
EnumType 'discr']
       - This avoids us working around it by not assigning the discriminator as 
a simple field and having to parse ti as a parameter when creating objects.
   
   - An accidental but slight improvement was added when defining Enumerated 
constants and switch fieds, you no longer have to include the Enumerated Type 
for each case e.g.
       [typeSwitch 'discr'
           ['EnumType.BOOL'  DiscriminatedBOOL]
   becomes
       [typeSwitch 'discr'
           ['BOOL'  DiscriminatedBOOL]
   
   - Implemented variable lengths for string fields e.g.
       [simple string '8' 'UTF-8' 'stringField']
       expressions can also be used
       [simple int 8 'stringLength']
       [simple string 'stringLength' 'UTF-8' 'stringField'] // Have to update 
the templates when using implicit fields for stringLengths Ill do that tomorrow.
   
   - Added exclusions for RAT checks in C so that maven can be used to compile 
it.
   
   - Added the Go and C build-util modules to their respective profiles, 
with-go and with-c so we don't build them when only using java.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to