--[[ Test of Global Function Sequence DSL (Rules08) 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-15: Adapted from Fowler's rules8.rb This Lua version adds the explicit "configuration()" and "return end_configuration()" calls. These are optional in that the work will be done by other methods if not done explicitly. --]] 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()