# This file is part of NIT ( http://www.nitlanguage.org ). # # Copyright 2009 Jean Privat # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import kernel fun a !a1 !a2 #!alt1# #alt2# !a3 #alt6# !a1 do a1 a2 #!alt1# #alt2# a3 end fun b !b1 !b2 do b1 b2 end fun c !c1 do c1 end fun d !d1 !d2 !d3 do d1 d2 d3 end 0.output a !a1 do b !b1 do 1.output !b2 do #!alt3# 2.output #!alt3# #alt4# !b3 do #alt4# 20.output end !a2 do 3.output end 4.output c !c1 do d !d1 do 5.output !d2 do 6.output !d3 do 7.output end #alt5#a !a2 do #alt5#!a1 do #alt5#end 8.output