k-legacy icon indicating copy to clipboard operation
k-legacy copied to clipboard

List and NeList

Open findo opened this issue 8 years ago • 1 comments

What is the difference between List and NeList? Python-semantics uses NeList. I don't know its meaning.

Also is there a doc introducing how to write complex configurations? I am current working on writing the semantics and don't know how to write the state.

findo avatar Jan 11 '17 05:01 findo

The difference is mainly related to parsing. By declaring as NeList, the parser will reject an empty list. NeList stands for "Non-empty List".

The best source to learn K is tutorial. https://github.com/kframework/k/tree/master/k-distribution/tutorial The language IMP will be a good start. https://github.com/kframework/k/tree/master/k-distribution/tutorial/1_k/2_imp

daejunpark avatar Jan 11 '17 06:01 daejunpark