Giter Club home page Giter Club logo

Comments (5)

Konstantin8105 avatar Konstantin8105 commented on May 18, 2024 1

Thank you for sending AST error.
For myself - easy. I think tomorrow- I will fix.

from c4go.

Konstantin8105 avatar Konstantin8105 commented on May 18, 2024

Dear @eugeis ,
Again thanks for AST ERROR.
Please try transpile with argument -s like that:

c4go transpile -s open62541.c

from c4go.

eugeis avatar eugeis commented on May 18, 2024

Dear @Konstantin8105 ,
thank you for your improvement.

It seems to be better now, but still some AST issues like

Cannot parse line: VarDecl 0x55b0fd0132f0 <col:5, col:37> col:20 used range 'UA_UInt32Range':'UA_UInt32Range' nrvo cinit. could not match regexp with string
^(?P

[0-9a-fx]+) (?:parent (?P0x[0-9a-f]+) )?(?:prev (?P0x[0-9a-f]+) )?<(?P.)>(?P .+:\d+)?(?P used)?(?P referenced)?(?P \w+)? '(?P.+?)'(?P:'.?')?(?P extern)?(?P static)?(?P tls)?(?P register)?(?P cinit)?(?P callinit)?(?P nrvo)?[\s]*$
0x55b0fd0132f0 <col:5, col:37> col:20 used range 'UA_UInt32Range':'UA_UInt32Range' nrvo cinit

Would you like to check it out, I regenerated the file:
https://raw.githubusercontent.com/eugeis/gopen62541/master/gen/open62541.go

from c4go.

Konstantin8105 avatar Konstantin8105 commented on May 18, 2024

Dear @eugeis ,
this is maximal of translation.
Now, transpilation is ok only for small source with minimal dependency.
For example, for next header c4go haven't any implementation:

/usr/include/netinet/tcp.h
/usr/include/xlocale.h
/usr/include/arpa/inet.h
/usr/include/asm-generic/socket.h
...

Also, some variable have not UA_STRING_NULL implementation in C.

from c4go.

eugeis avatar eugeis commented on May 18, 2024

ok, thank you for your fixes.
I understand that the source code complex is, maybe be in some time it will be possible to achieve better results.

from c4go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.