Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • N ndl
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pro
  • ndl
  • Wiki
  • specification

specification · Changes

Page history
Updates loop description authored Nov 06, 2018 by Mateusz Ślażyński's avatar Mateusz Ślażyński
Hide whitespace changes
Inline Side-by-side
specification.md
View page @ 920e4ce3
......@@ -69,8 +69,8 @@ NDL query is a Prolog like program, containing rules, with bodies consisting of
* binary arithmetic comparisons: `=/2`, `>=/2`, `>/2`, `</2`, `<=/2`
* loops in form of `for_each(+Generator:model_clause, +Query:query)`
* first argument is a non-deterministic model clause, i.e. `variable/(2..6)`, `constraint/3`, `range_element/2`
* `Generator`'s variables are available in the `Query`
* queries are run in order, independently, it the query fails on the specific variable assignment, it continues with the next assignment
* all `Generator`'s variables are instantiated and available in the `Query`
* queries are run in order, independently, it the query fails on the specific variables' instantiation, it continues with the next assignment
* conditions `if(+Condition:query,+Then:query)` and `if(+Condition:test,+Then:query,+Else:query)`
* `Condition` contains only one term
* if `Condition` succeeds, `Then` query is evaluated
......
Clone repository
  • 20181018
  • Theory
  • Home
  • knowledge base
  • specification