Comments (4)
Might want to run with comments off - -c, --noComments
- this is an issue with tree-sitter.
from nimterop.
Sadly -c
didn't solve this.
Since the problem is in dependency, I will close it.
Thank you :-)
from nimterop.
Can you clarify how you tried -c
?
from nimterop.
toast -mc --prefix=_ --noComments -f:ast2 --pnim -o context.nim context.h
The context.nim with and without --noComments are the same but comments where omitted
The only comments left are
# const 'LY_CTX_REF_IMPLEMENTED' has unsupported value '0x02 /**< Implement all imported modules "referenced" from an implemented module.'
# tree-sitter parse error: 'specified by YANG', skipped
# tree-sitter parse error: 'addition to this, implement', skipped
# tree-sitter parse error: 'modules are implemented, the', skipped
# const 'LY_CTX_NO_YANGLIBRARY' has unsupported value '0x04 /**< Do not internally implement ietf-yang-library module. The option'
# tree-sitter parse error: 'does not work (returns ::LY_EINVAL)', skipped
# tree-sitter parse error: 'loaded manually. While any revision', skipped
# tree-sitter parse error: 'with this option, note', skipped
# tree-sitter parse error: 'implemented by ::ly_ctx_get_yanglib_data() are', skipped
# const 'LY_CTX_DISABLE_SEARCHDIRS' has unsupported value '0x08 /**< Do not search for schemas in context's searchdirs neither in current'
# tree-sitter parse error: 'working directory. It is entirely skipped and the only way to get', skipped
# tree-sitter parse error: 'imports or for ::ly_ctx_load_module()', skipped
# const 'LY_CTX_DISABLE_SEARCHDIR_CWD' has unsupported value '0x10 /**< Do not automatically search for schemas in current working'
# const 'LY_CTX_SET_PRIV_PARSED' has unsupported value '0x40 /**< For all compiled nodes, their private objects (::lysc_node.priv) are used'
# tree-sitter parse error: 'parsed node (::lysp_node).', skipped
# tree-sitter parse error: 'exception are \"case\" statements, which', skipped
# tree-sitter parse error: 'option is set, the', skipped
# tree-sitter parse error: 'private objects.', skipped
# const 'LY_CTX_EXPLICIT_COMPILE' has unsupported value '0x80 /**< If this flag is set, the compiled modules and their schema nodes are'
from nimterop.
Related Issues (20)
- using system tree-sitter HOT 6
- Parsing a global variable that's a pointer to an array of functions
- Structs mapped from C header need completeStruct pragma, otherwise sizeof doesn't work on those
- VM does not support 'cast' from tyFloat to tyFloat HOT 2
- [Question] Change build directory HOT 1
- Inject code to process `#define`? HOT 8
- Building Failed with nimble. HOT 2
- [Question] Binding to OpenCV HOT 2
- Using nimterop in MSYS2 Bash environment on Windows HOT 3
- Header path handling on Windows HOT 3
- βuint16_t β What happened?
- Typedef function with an enum return type
- Support OpenBSD
- The nimterop good this reference documentation to convert small C project
- [Question] Nimterop, libnx and DevKitPro | sys/lock.h : No such file or directory HOT 1
- "cmd: not found" when building using mingw building a windows executable in linux
- ssing comma in the example
- Toast segfault with comment after define
- Build fails due to `macro getHeader` Implementation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nimterop.