Skip to content

Commit

Permalink
removes all conflicts and cleans up the grammar (#25)
Browse files Browse the repository at this point in the history
* a bit of reindeting and detabulation

* uses menhir stdlib for more clear grammar

* removes two shift/reduce conflicts

* removes 8 conflicts induced by support of empty structc

The empty structs are not in the standard by but [allowed by
gcc][1]. Their grammar, though, was specified in a wrong level.

[1]: https://gcc.gnu.org/onlinedocs/gcc-3.3.1/gcc/Empty-Structures.html#Empty%20Structures

* removes the volatile asm conflict

No more conflicts
  • Loading branch information
ivg authored May 13, 2021
1 parent fd8c79c commit ac4fc37
Show file tree
Hide file tree
Showing 4 changed files with 627 additions and 651 deletions.
10 changes: 10 additions & 0 deletions ctoxml/test.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -3865,3 +3865,13 @@
</param>
</fundec>
</file>

$ echo 'struct foo {int x;};' | dune exec ctoxml
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<file>
<struct id="struct:foo">
<field name="x">
<long/>
</field>
</struct>
</file>
Loading

0 comments on commit ac4fc37

Please sign in to comment.