Comments (14)
from dparser.
Hi John,
According to CRAN, I need to fix the following
Found the following significant warnings:
read_binary.c:40:14: warning: ISO C forbids conversion of function pointer to object pointer type [-Wpedantic]
read_binary.c:42:14: warning: ISO C forbids conversion of function pointer to object pointer type [-Wpedantic]
read_binary.c:44:12: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
read_binary.c:50:34: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
from dparser.
They also are having the following failure in the testsuite, using gcc 6
Last 13 lines of output:
x[1]: "g10.test.g.1:1: syntax error after 'c'"
y[1]: "5 states 3 scans 3 shifts 1 reductions 0 compares 0 ambiguities"
x[2]: "fatal error, 'g10.test.g.1' line 1"
y[2]: "( a b c )"
from dparser.
One last thing, they have a standard template for the BSD 3 license. I changed your licence to match it, if that's OK:
https://github.com/nlmixrdevelopment/dparser-R/blob/master/LICENSE
Before I separated out my name for the R porting and your name for the awesome dparser.
from dparser.
from dparser.
from dparser.
from dparser.
It could be an interaction between R and dparser. I don't actually have gcc6.1, it was a comment from the CRAN developer who has R. His full comment was:
You mis-use file LICENSE: for BSD_3_clause this should only be the
completed template, see
<https://www.r-project.org/Licenses/BSD_3_clause>.
Re compilation warnings, with GCC 6 I get
* checking whether package ‘dparser’ can be installed ... [10s/10s] WARNING
Found the following significant warnings:
read_binary.c:44:12: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
read_binary.c:50:34: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
Pls fix these.
Otoh, I get
* checking tests ... [5s/5s] ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
x[1]: "g10.test.g.1:1: syntax error after 'c'"
y[1]: "5 states 3 scans 3 shifts 1 reductions 0 compares 0 ambiguities"
x[2]: "fatal error, 'g10.test.g.1' line 1"
y[2]: "( a b c )"
testthat results ================================================================
OK: 590 SKIPPED: 0 FAILED: 1
1. Failure: g10.test.g: g10.test.g.1 (@test-dparser.R#96)
Error: testthat unit tests failed
In addition: Warning message:
In body(fun) : argument is not a function
Execution halted
(with a very current r-devel)
???
-k
from dparser.
For me all the tests succeed:
> test(filter="dparser")
Loading dparser
Testing dparser
Grammar ansic.test.g: .
Grammar g1.test.g: .
Grammar g10.test.g: .
Grammar g11.test.g: ...
Grammar g12.test.g: .
Grammar g13.test.g: .
Grammar g14.test.g: .
Grammar g15.test.g: .
Grammar g16.test.g: .
Grammar g17.test.g: .
Grammar g18.test.g: .
Grammar g19.test.g: .
Grammar g2.test.g: .
Grammar g20.test.g: .
Grammar g21.test.g: .
Grammar g22.test.g: .
Grammar g23.test.g: .
Grammar g24.test.g: .
Grammar g25.test.g: .
Grammar g26.test.g: .
Grammar g27.test.g: .
Grammar g28.test.g: ..
Grammar g29.test.g: .
Grammar g3.test.g: .
Grammar g30.test.g: .
Grammar g31.test.g: .
Grammar g32.test.g: .
Grammar g33.test.g: .
Grammar g34.test.g: .
Grammar g35.test.g: .
Grammar g36.test.g: .
Grammar g37.test.g: .
Grammar g38.test.g: .
Grammar g39.test.g: .
Grammar g4.test.g: .
Grammar g40.test.g: .
Grammar g41.test.g: .
Grammar g42.test.g: .
Grammar g43.test.g: ...
Grammar g44.test.g: .
Grammar g45.test.g: .
Grammar g46.test.g: .
Grammar g47.test.g: .
Grammar g48.test.g: .
Grammar g49.test.g: .
Grammar g5.test.g: .
Grammar g50.test.g: .
Grammar g51.test.g: .
Grammar g6.test.g: .
Grammar g7.test.g: ..
Grammar g8.test.g: .
Grammar g9.test.g: .
Grammar python.test.g: .
Grammar sample.test.g: ..................................
Grammar utf8.test.g: .
DONE ===========================================================================
>
This is also true of all the test environments that I have looked into with appveyor and travis.
What I did was allowed it to fail. I'm not sure that is a good idea, but it still didn't parse the file correctly. I really don't know what the implications of not-matching the tests are...
from dparser.
Thank you for all your help, by the way. I am so grateful for your help.
from dparser.
I was wondering if you could help me with some of the questions from CRAN; They asked:
This passes checking ok now, but pls make the Description more complete:
write out GLR, add a reference for Tomita algorithm, ideally using a
DOI: write
Authors (year) <DOI:.....>
(with no space after 'DOI:').
Finally, the title mentions a 'Dparser' package (should be in single
quotes), so pls explain that in the Description too, ideally giving a
URL for it written as <http....>, e.g.
the 'Dparser' package ........ (see <http...> for more information)
Best
Can you provide any of the information? I don't know if you have a DOI.
Of course I can provide the URL to the dparser page, but which would you prefer (the github?)
from dparser.
- GLR standing for "generalized LR", where L stands for "left-to-right" and R stands for "rightmost (derivation)
- Paper (I think I can get a DOI for this): http://acl-arc.comp.nus.edu.sg/archives/acl-arc-090501d3/data/pdf/anthology-PDF/J/J87/J87-1004.pdf
from dparser.
For now, I could use
Description: A Scannerless GLR parser/parser generator. Note that GLR standing for "generalized LR", where L stands for "left-to-right" and
R stands for "rightmost (derivation)". For more information see <https://en.wikipedia.org/wiki/GLR_parser>. This parser is based on the Tomita
(1987) algorithm. (Paper can be found at <http://acl-arc.comp.nus.edu.sg/archives/acl-arc-090501d3/data/pdf/anthology-PDF/J/J87/J87-1004.pdf>).
The original dparser package documentation can be found at <http://dparser.sourceforge.net/>. This allows you to add mini-languages to R (like
RxODE's ODE mini-language Wang, Hallow, and James 2015 <DOI:10.1002/psp4.12052>) or to parse other languages like NONMEM to automatically translate
them to R code. To use this in your code, add a LinkingTo 'dparser' in your DESCRIPTION file and instead of using '#include <dparse.h>' use
'#include <dparser.h>'. This also provides a R-based port of the make_dparser <http://dparser.sourceforge.net/d/make_dparser.cat> command called
'mkdparser'. Additionally you can parse an arbitrary grammar within R using the 'dparse' function.
from dparser.
It's on cran now. Thank you!
from dparser.
Related Issues (19)
- Add "-Wextra -pedantic -std=c11" to the list of flags
- is `buildall` supposed to ssh/scp stuff??? HOT 1
- Microsoft VS support? HOT 1
- Building DParser in Visual Studio
- Usban checks; "Issues" are they important?
- no support for stdin?
- support for aquiring a tokens matched string like $$.buf or yy.text
- Tarball 1.30 is broken HOT 6
- Speed of dparser -- possibly increase with std::sort from C++? HOT 3
- dparser memory leak HOT 2
- Apparent incompatibility with bytes objects in Python 3 HOT 1
- Inconsistent results in tests HOT 9
- valgrind errors HOT 1
- Nondeterministic result with "if-then-else" expressions HOT 17
- How to set a syntax error callback without global variables? HOT 3
- Errors reported by valgrind HOT 1
- How to run tests? Does not work with CMake, does not work with test_parser
- Feature request: Provide column number for syntax errors, too
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 dparser.