~ubuntu-branches/ubuntu/wily/ctioga2/wily

« back to all changes in this revision

Viewing changes to lib/ctioga2/commands/parsers/file.rb

  • Committer: Package Import Robot
  • Author(s): Vincent Fourmond
  • Date: 2013-07-08 20:58:17 UTC
  • mfrom: (6.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130708205817-cephnc6etndyxrrp
Tags: 0.4-2
* Upload to unstable
* Already conforms to newer standards

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
module CTioga2
21
21
 
22
 
  Version::register_svn_info('$Revision: 151 $', '$Date: 2010-06-19 23:45:20 +0200 (Sat, 19 Jun 2010) $')
 
22
  Version::register_svn_info('$Revision: 327 $', '$Date: 2012-11-28 14:47:52 +0100 (Wed, 28 Nov 2012) $')
23
23
 
24
24
  module Commands
25
25
 
70
70
        def parse_io_object(io, interpreter)
71
71
          # The process is simple: we look for symbols and
72
72
          # corresponding syntax element: parentheses or assignments
 
73
 
 
74
          ## @todo It would be really great if assignments could be
 
75
          ## made conditional (a bit like in makefiles)
73
76
          while(1)
74
77
            symbol = up_to_next_symbol(io)
75
78
            break if not symbol
107
110
                  end
108
111
                end
109
112
 
 
113
                interpreter.context.parsing_file(symbol, io) # Missing line number
110
114
                interpreter.run_command(cmd, real_args, options)
111
115
                io.getc         # Slurp up the )
112
116
                break