Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot parse interface.ccl from AEIThorns/Trigger #118

Open
ianhinder opened this issue Jan 26, 2015 · 0 comments
Open

Cannot parse interface.ccl from AEIThorns/Trigger #118

ianhinder opened this issue Jan 26, 2015 · 0 comments
Assignees

Comments

@ianhinder
Copy link
Owner

The Kranc Funwave example inherits from other thorns, and Kranc uses the interface.ccl files of the Cactus tree to determine the mapping between variables and groups. This requires that it can successfully parse all the interface.ccl files. The current grammar (Kranc/Auxiliary/Grammars/intrfccl.peg) does not parse AEIThorns/Trigger/interface.ccl. It gives the error

cd Kranc/Examples
$ ../Bin/kranc Funwave.kranc 
Using Kranc installation at ../Bin/..
Mathematica 10.0 for Mac OS X x86 (64-bit)
Copyright 1988-2014 Wolfram Research, Inc.
Creating thorn from Funwave.kranc
Searching for inherited groups...
Error: 
"Failed to parse input file: "
"../Bin/../../../arrangements/AEIThorns/Trigger/interface.ccl"
"Expected one of: [t, clude] 3 in {[INCLUDES, INCLUDE]}: 'in|herits: IO'"
in CreateThornFromKrancScript/CreateKrancThornTT2/KrancTensor`Private`InheritedGroups/
KrancTensor`Private`thornOfImplementation/KrancTensor`Private`implementationOfThorn/
KrancTensor`Private`interfaceTreeOfThorn/KrancTensor`Private`parseInterfaceCCL/ParsePEG

Since Cactus is able to parse this file, this suggests that the grammar is different. One solution would be to use the Cactus grammar in Kranc (both use Piraha, so this should be straightforward). In fact, it would be very good if the Cactus grammars were stored as text files in the Cactus tree, and Kranc could use them directly, rather than using its own copy.

See also #117 about skipping interface files which fail to parse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants