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

Non-termination with a large program grammar #16

Open
codelion opened this issue Jul 31, 2017 · 0 comments
Open

Non-termination with a large program grammar #16

codelion opened this issue Jul 31, 2017 · 0 comments

Comments

@codelion
Copy link
Owner

The following grammar leads to a non-termination in test case generation.

<program>      ::=   [<expr>]
<expr>         ::=   <id> | <method> | <rmethod> | <quote> | <label> | <string> | <tuple> | <block> | <seq> | <let>
<method>       ::=   "(" <method> <pattern> {<expr>} ")"
<rmethod>      ::=   "(" <rmethod> <pattern> {<expr>} ")"
<quote>        ::=   "'" <expr> "'"
<label>        ::=   "(" <label> <id> {<expr>} ")"
<string>       ::=   "this is a string"
<id>           ::=   <id> {<character>}
<tuple>        ::=   "[" [<expr>] "]" | "[" [<expr>] " & " <expr> "]"
<block>        ::=   "(" <block> {<expr>} ")"
<seq>          ::=   "(" <seq> {<expr>} ")"
<let>          ::=   "(" <let> [ "[" <id> <expr> "]"] {<expr>} ")" |
                        "(" <let>  "[" <pattern> <expr> "]"  {<expr>} ")"
<pattern>      ::=   ("[ " [<expr>] " ]") | ("[ " [<expr>] " & " <expr> " ]")

<character>    ::=   A | B | C | D | E | F | G | H | I | J | K | L | M | N |
                     O | P | Q | R | S | T | U | V | W | X | Y | Z |
                     a | b | c | d | e | f | g | h | i | j | k | l | m | n |
                     o | p | q | r | s | t | u | v | w | x | y | z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant