Oct 14 08:33 2013 rules08a.lua Page 1 --[[ Test Global Function Sequence DSL (Rules08a) Lair Configuration DSL Case Study H. Conrad Cunningham, Professor Computer and Information Science University of Mississippi This is a Global Function Sequence DSL example. See the comments in the Global Function Sequence builder (builder08) and the Semantic Model modules. Developed for CSci 658, Software Language Engineering, Fall 2013 1234567890123456789012345678901234567890123456789012345678901234567890 2013-10-14: Adapted from Fowler's lairs/rules8.rb This is the same as rules00.lua except the configuration() and end_configuration() calls are commented out. --]] -- configuration() item(S.secure_air_vent) item(S.acid_bath) uses(acid()) acid_type(S.hcl) acid_grade(5) uses(electricity(12)) item(S.camera) uses(electricity(1)) item(S.small_power_plant) provides(electricity(11)) depends(S.secure_air_vent) -- return end_configuration()