Skip to content

Commit

Permalink
Merge branch 'develop' into _update-deps/runtimeverification/llvm-bac…
Browse files Browse the repository at this point in the history
…kend
  • Loading branch information
rv-jenkins authored Aug 22, 2024
2 parents 244f019 + 0e4c4ea commit ff79d7b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ private void checkRule(Rule rule) {
checkNonExecutable(rule);
checkSimplification(rule);
checkSymbolic(rule);
checkSyntactic(rule);
}

private void checkProduction(Production prod) {
Expand Down Expand Up @@ -151,6 +152,14 @@ private void checkSymbolic(Rule rule) {
}
}

private void checkSyntactic(Rule rule) {
if (rule.att().contains(Att.SYNTACTIC()) && !rule.att().contains(Att.SIMPLIFICATION())) {
errors.add(
KEMException.compilerError(
"syntactic attribute is only supported on simplification rules."));
}
}

private void checkHookedSortConstructors(Production prod) {
if (prod.sort().equals(Sorts.KItem())) {
return;
Expand Down
6 changes: 3 additions & 3 deletions k-frontend/src/main/java/org/kframework/kil/UserList.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ public class UserList extends ProductionItem {

public UserList(Sort sort, String separator) {
this.sort = sort;
this.separator = separator.trim();
this.separator = separator;
this.listType = ZERO_OR_MORE;
}

public UserList(Sort sort, String separator, String listType) {
this.sort = sort;
this.separator = separator.trim();
this.separator = separator;
this.listType = listType;
}

Expand Down Expand Up @@ -58,7 +58,7 @@ public String getSeparator() {
}

public void setSeparator(String separator) {
this.separator = separator.trim();
this.separator = separator;
}

@Override
Expand Down
2 changes: 2 additions & 0 deletions k-frontend/src/main/scala/org/kframework/attributes/Att.scala
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ object Att {
onlyon3[Module, Production, Rule],
KeyRange.WholePipeline
)
final val SYNTACTIC =
Key.builtin("syntactic", KeyParameter.Required, onlyon[Rule], KeyRange.WholePipeline)
final val TOKEN = Key.builtin(
"token",
KeyParameter.Forbidden,
Expand Down
3 changes: 3 additions & 0 deletions pyk/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ __pycache__/

.kprove*
*.debug-log

.idea/
.DS_Store

0 comments on commit ff79d7b

Please sign in to comment.