1. 30 Nov, 2008 1 commit
    • Jürg Billeter's avatar
      Fix error handling in condition of while, do, and for statements · 0697212a
      Jürg Billeter authored
      2008-11-30  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valaaddressofexpression.vala:
      	* vala/valaarraycreationexpression.vala:
      	* vala/valaassignment.vala:
      	* vala/valabaseaccess.vala:
      	* vala/valabinaryexpression.vala:
      	* vala/valablock.vala:
      	* vala/valacastexpression.vala:
      	* vala/valaconditionalexpression.vala:
      	* vala/valadostatement.vala:
      	* vala/valaelementaccess.vala:
      	* vala/valaexpression.vala:
      	* vala/valaforstatement.vala:
      	* vala/valainitializerlist.vala:
      	* vala/valalambdaexpression.vala:
      	* vala/valaliteral.vala:
      	* vala/valamemberaccess.vala:
      	* vala/valamethodcall.vala:
      	* vala/valaobjectcreationexpression.vala:
      	* vala/valaparenthesizedexpression.vala:
      	* vala/valapointerindirection.vala:
      	* vala/valapostfixexpression.vala:
      	* vala/valareferencetransferexpression.vala:
      	* vala/valasemanticanalyzer.vala:
      	* vala/valasizeofexpression.vala:
      	* vala/valaswitchsection.vala:
      	* vala/valatuple.vala:
      	* vala/valatypecheck.vala:
      	* vala/valatypeofexpression.vala:
      	* vala/valaunaryexpression.vala:
      	* vala/valawhilestatement.vala:
      	* gobject/valaccodebasemodule.vala:
      
      	Fix error handling in condition of while, do, and for statements
      
      svn path=/trunk/; revision=2096
      0697212a
  2. 29 Nov, 2008 1 commit
    • Jürg Billeter's avatar
      Convert binary conditional expressions into if statements · 9c112c98
      Jürg Billeter authored
      2008-11-29  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valaaddressofexpression.vala:
      	* vala/valaarraycreationexpression.vala:
      	* vala/valaassignment.vala:
      	* vala/valabaseaccess.vala:
      	* vala/valabinaryexpression.vala:
      	* vala/valacastexpression.vala:
      	* vala/valaconditionalexpression.vala:
      	* vala/valadostatement.vala:
      	* vala/valaelementaccess.vala:
      	* vala/valaexpression.vala:
      	* vala/valaforstatement.vala:
      	* vala/valainitializerlist.vala:
      	* vala/valalambdaexpression.vala:
      	* vala/valaliteral.vala:
      	* vala/valamemberaccess.vala:
      	* vala/valamethodcall.vala:
      	* vala/valaobjectcreationexpression.vala:
      	* vala/valaparenthesizedexpression.vala:
      	* vala/valapointerindirection.vala:
      	* vala/valapostfixexpression.vala:
      	* vala/valareferencetransferexpression.vala:
      	* vala/valasizeofexpression.vala:
      	* vala/valatuple.vala:
      	* vala/valatypecheck.vala:
      	* vala/valatypeofexpression.vala:
      	* vala/valaunaryexpression.vala:
      	* vala/valawhilestatement.vala:
      
      	Convert binary conditional expressions into if statements
      
      svn path=/trunk/; revision=2085
      9c112c98
  3. 10 Nov, 2008 1 commit
    • Jürg Billeter's avatar
      Move expression checking to code nodes · 67649405
      Jürg Billeter authored
      2008-11-10  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valaaddressofexpression.vala:
      	* vala/valabaseaccess.vala:
      	* vala/valabooleanliteral.vala:
      	* vala/valacastexpression.vala:
      	* vala/valacharacterliteral.vala:
      	* vala/valaconditionalexpression.vala:
      	* vala/valaintegerliteral.vala:
      	* vala/valalambdaexpression.vala:
      	* vala/valanullliteral.vala:
      	* vala/valaobjectcreationexpression.vala:
      	* vala/valaparenthesizedexpression.vala:
      	* vala/valapointerindirection.vala:
      	* vala/valapostfixexpression.vala:
      	* vala/valarealliteral.vala:
      	* vala/valareferencetransferexpression.vala:
      	* vala/valasemanticanalyzer.vala:
      	* vala/valasizeofexpression.vala:
      	* vala/valastringliteral.vala:
      	* vala/valatypecheck.vala:
      	* vala/valatypeofexpression.vala:
      	* vala/valaunaryexpression.vala:
      
      	Move expression checking to code nodes
      
      svn path=/trunk/; revision=2009
      67649405
  4. 28 May, 2008 1 commit
    • Jürg Billeter's avatar
      Move memory management into CCodeGenerator.transform_expression as · 8c73a50a
      Jürg Billeter authored
      2008-05-28  Juerg Billeter  <j@bitron.ch>
      
      	* vala/Makefile.am:
      	* vala/valaaddressofexpression.vala:
      	* vala/valaarraycreationexpression.vala:
      	* vala/valaassignment.vala:
      	* vala/valabaseaccess.vala:
      	* vala/valabinaryexpression.vala:
      	* vala/valabooleanliteral.vala:
      	* vala/valacastexpression.vala:
      	* vala/valacharacterliteral.vala:
      	* vala/valacodevisitor.vala:
      	* vala/valaconditionalexpression.vala:
      	* vala/valadatatype.vala:
      	* vala/valaelementaccess.vala:
      	* vala/valaexpression.vala:
      	* vala/valaintegerliteral.vala:
      	* vala/valaintegertype.vala:
      	* vala/valainvocationexpression.vala:
      	* vala/valalambdaexpression.vala:
      	* vala/valamemberaccess.vala:
      	* vala/valanullchecker.vala:
      	* vala/valanullliteral.vala:
      	* vala/valanulltype.vala:
      	* vala/valaobjectcreationexpression.vala:
      	* vala/valaparenthesizedexpression.vala:
      	* vala/valapointerindirection.vala:
      	* vala/valapostfixexpression.vala:
      	* vala/valarealliteral.vala:
      	* vala/valareferencetransferexpression.vala:
      	* vala/valasemanticanalyzer.vala:
      	* vala/valasignal.vala:
      	* vala/valasizeofexpression.vala:
      	* vala/valastringliteral.vala:
      	* vala/valatypecheck.vala:
      	* vala/valatypeofexpression.vala:
      	* vala/valaunaryexpression.vala:
      	* vala/valaunresolvedtype.vala:
      	* vala/valavaluetype.vala:
      	* gobject/valaccodeassignmentbinding.vala:
      	* gobject/valaccodeelementaccessbinding.vala:
      	* gobject/valaccodegenerator.vala:
      	* gobject/valaccodeinvocationexpressionbinding.vala:
      	* gobject/valaccodememberaccessbinding.vala:
      	* gobject/valaccodemethodbinding.vala:
      	* compiler/valacompiler.vala:
      
      	Move memory management into CCodeGenerator.transform_expression
      	as preparation to properly support nullable structs, fixes memory
      	leak in internal substring method, fixes bug 527775
      
      svn path=/trunk/; revision=1466
      8c73a50a
  5. 13 Apr, 2008 2 commits
  6. 29 Nov, 2007 1 commit
    • Jürg Billeter's avatar
      add is_pure method to Expression class · 32f3f561
      Jürg Billeter authored
      2007-11-29  Juerg Billeter  <j@bitron.ch>
      
      	* vala/valaaddressofexpression.vala,
      	  vala/valaarraycreationexpression.vala, vala/valaassignment.vala,
      	  vala/valabaseaccess.vala, vala/valabinaryexpression.vala,
      	  vala/valacastexpression.vala, vala/valaconditionalexpression.vala,
      	  vala/valaelementaccess.vala, vala/valaexpression.vala,
      	  vala/valainitializerlist.vala, vala/valainvocationexpression.vala,
      	  vala/valalambdaexpression.vala, vala/valaliteralexpression.vala,
      	  vala/valamemberaccess.vala, vala/valaobjectcreationexpression.vala,
      	  vala/valaparenthesizedexpression.vala,
      	  vala/valapointerindirection.vala, vala/valapostfixexpression.vala,
      	  vala/valareferencetransferexpression.vala,
      	  vala/valasizeofexpression.vala, vala/valatypecheck.vala,
      	  vala/valatypeofexpression.vala, vala/valaunaryexpression.vala: add
      	  is_pure method to Expression class
      
      svn path=/trunk/; revision=739
      32f3f561
  7. 07 Sep, 2007 1 commit
  8. 09 Jul, 2007 1 commit
    • Jürg Billeter's avatar
      remove obsolete ref modifier and callback keyword · ffb3d21f
      Jürg Billeter authored
      2007-07-09  Juerg Billeter  <j@bitron.ch>
      
      	* vala/scanner.l, vala/parser.y, vala/valaarray.vala,
      	  vala/valaarraycreationexpression.vala, vala/valaattribute.vala,
      	  vala/valabaseaccess.vala, vala/valablock.vala,
      	  vala/valabooleanliteral.vala, vala/valacallback.vala,
      	  vala/valaclass.vala, vala/valacodecontext.vala,
      	  vala/valacodenode.vala, vala/valacreationmethod.vala,
      	  vala/valadatatype.vala, vala/valaelementaccess.vala,
      	  vala/valaenum.vala, vala/valafield.vala, vala/valaflags.vala,
      	  vala/valaformalparameter.vala, vala/valaforstatement.vala,
      	  vala/valainitializerlist.vala, vala/valaintegerliteral.vala,
      	  vala/valainterface.vala, vala/valainterfacewriter.vala,
      	  vala/valainvocationexpression.vala, vala/valainvokable.vala,
      	  vala/valalambdaexpression.vala, vala/valaliteralexpression.vala,
      	  vala/valalocalvariabledeclaration.vala, vala/valamemberaccess.vala,
      	  vala/valamemorymanager.vala, vala/valamethod.vala,
      	  vala/valanamespace.vala, vala/valanullliteral.vala,
      	  vala/valaobjectcreationexpression.vala, vala/valaparser.vala,
      	  vala/valapointer.vala, vala/valaproperty.vala,
      	  vala/valasemanticanalyzer.vala, vala/valasignal.vala,
      	  vala/valasourcefile.vala, vala/valasourcereference.vala,
      	  vala/valastringliteral.vala, vala/valastruct.vala,
      	  vala/valaswitchsection.vala, vala/valaswitchstatement.vala,
      	  vala/valasymbol.vala, vala/valasymbolresolver.vala,
      	  vala/valatypereference.vala, vala/valavariabledeclarator.vala,
      	  gobject/valaclassregisterfunction.vala,
      	  gobject/valacodegenerator.vala,
      	  gobject/valacodegeneratorassignment.vala,
      	  gobject/valacodegeneratorclass.vala,
      	  gobject/valacodegeneratorinterface.vala,
      	  gobject/valacodegeneratorinvocationexpression.vala,
      	  gobject/valacodegeneratormemberaccess.vala,
      	  gobject/valacodegeneratormethod.vala,
      	  gobject/valacodegeneratorsignal.vala,
      	  gobject/valacodegeneratorsourcefile.vala,
      	  gobject/valainterfaceregisterfunction.vala,
      	  gobject/valatyperegisterfunction.vala, ccode/valaccodefragment.vala,
      	  ccode/valaccodefunction.vala, compiler/valacompiler.vala,
      	  vapi/cairo.vala, vapi/glib-2.0.vala, vapi/libxml-2.0.vala,
      	  tests/test-023.vala, gobject-introspection/gidl.vala,
      	  vapigen/valagidlparser.vala, vapigen/valavapigen.vala: remove obsolete
      	  ref modifier and callback keyword
      
      svn path=/trunk/; revision=334
      ffb3d21f
  9. 02 May, 2007 2 commits
  10. 03 Mar, 2007 1 commit
  11. 25 Oct, 2006 1 commit
    • Jürg Billeter's avatar
      support base access update test base access update · 1a6a0b20
      Jürg Billeter authored
      2006-10-25  Jürg Billeter  <j@bitron.ch>
      
      	* vala/parser.y, vala/valacodevisitor.vala,
      	  vala/valasemanticanalyzer.vala, vala/valacodegenerator.vala,
      	  vala/valabaseaccess.vala: support base access
      	* vala/vala.h, vala/Makefile.am: update
      	* tests/test-025.vala: test base access
      	* tests/Makefile.am: update
      
      svn path=/trunk/; revision=150
      1a6a0b20
  12. 02 Sep, 2006 1 commit
    • Jürg Billeter's avatar
      don't set parent_node in parser support string + operator set parent_node · 7a498fd8
      Jürg Billeter authored
      2006-09-02  Jürg Billeter  <j@bitron.ch>
      
      	* vala/parser.y: don't set parent_node in parser
      	* vala/valasemanticanalyzer.vala: support string + operator
      	* vala/valaassignment.vala, vala/valabinaryexpression.vala,
      	  vala/valacastexpression.vala, vala/valacodenode.vala,
      	  vala/valadostatement.vala, vala/valaexpressionstatement.vala,
      	  vala/valaforeachstatement.vala, vala/valaforstatement.vala,
      	  vala/valaifstatement.vala, vala/valainvocationexpression.vala,
      	  vala/valamemberaccess.vala, vala/valaobjectcreationexpression.vala,
      	  vala/valaparenthesizedexpression.vala, vala/valareturnstatement.vala,
      	  vala/valaswitchstatement.vala, vala/valaunaryexpression.vala,
      	  vala/valawhilestatement.vala: set parent_node of child nodes, add
      	  replace method
      	* vala/valanullliteral.vala: add default argument to construction method
      	* tests/test-021.vala: test string + operator
      	* tests/Makefile.am: update
      
      svn path=/trunk/; revision=119
      7a498fd8
  13. 02 Aug, 2006 2 commits
    • Jürg Billeter's avatar
      port to construction methods add interface documentation, use implicit · 23e2ba15
      Jürg Billeter authored
      2006-08-02  Jürg Billeter  <j@bitron.ch>
      
      	* port to construction methods
      	* vala/valaparenthesizedexpression.vala, vala/valareport.vala,
      	  vala/valareturnstatement.vala, vala/valasourcefilecycle.vala,
      	  vala/valasourcereference.vala, vala/valatypecheck.vala,
      	  vala/valatypeofexpression.vala, vala/valatypeparameter.vala: add
      	  interface documentation, use implicit namespace specification
      	* vala/Makefile.am: sort source file list
      
      svn path=/trunk/; revision=89
      23e2ba15
    • Jürg Billeter's avatar
      add support for construction methods add to_string method support storing · e3311183
      Jürg Billeter authored
      2006-08-02  Jürg Billeter  <j@bitron.ch>
      
      	* vala/parser.y, vala/valacodevisitor.vala, vala/valasymbolbuilder.vala,
      	  vala/valasemanticanalyzer.vala, vala/valacodegenerator.vala,
      	  vala/valainterfacewriter.vala, vala/valaclass.vala,
      	  vala/valaexpressionstatement.vala, vala/valamethod.vala,
      	  vala/valaobjectcreationexpression.vala, vala/valastatement.vala,
      	  vala/valastruct.vala: add support for construction methods
      	* vala/valabooleanliteral.vala, vala/valaexpression.vala,
      	  vala/valaintegerliteral.vala, vala/valaliteral.vala,
      	  vala/valaliteralexpression.vala, vala/valamemberaccess.vala: add
      	  to_string method
      	* vala/valamemberaccess.vala, vala/valatypereference.vala: support
      	  storing type arguments in MemberAccess
      	* vala/valacodenode.vala: add parent_node property
      	* vala/parser.y, vala/valaifstatement.vala: only allow blocks as
      	  embedded statements
      	* vala/valaenum.vala: implement get_type_id method
      	* vala/valainterfacewriter.vala: output default expressions of formal
      	  parameters
      	* vala/valaformalparameter.vala: visit default expression
      	* vala/valaobjectcreationexpression.vala, vala/valanullliteral.vala,
      	  vala/valaproperty.vala, vala/valapropertyaccessor.vala: add interface
      	  documentation, use implicit namespace specification
      	* vala/vala.h: add valaelementaccess.h and valarealliteral.h
      	* ccode/valaccodememberaccess.vala: don't mark is_pointer as construct
      	* vapi/glib-2.0.vala: add GValue
      	* vapi/gtk+-2.0.vala: small updates
      
      svn path=/trunk/; revision=88
      e3311183
  14. 28 Jun, 2006 1 commit
    • Jürg Billeter's avatar
      move source_reference to Vala.Literal, use non-null types, don't mark · e054dd10
      Jürg Billeter authored
      2006-06-28  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valabooleanliteral.vala, vala/valacharacterliteral.vala,
      	  vala/valaintegerliteral.vala, vala/valaliteral.vala,
      	  vala/valanullliteral.vala, vala/valarealliteral.vala,
      	  vala/valastringliteral.vala: move source_reference to Vala.Literal,
      	  use non-null types, don't mark properties as construct-only
      
      svn path=/trunk/; revision=54
      e054dd10
  15. 18 May, 2006 1 commit
  16. 16 May, 2006 1 commit
    • Jürg Billeter's avatar
      fix unary expressions add visit_block method add visit methods for · 62f362b0
      Jürg Billeter authored
      2006-05-16  Jürg Billeter  <j@bitron.ch>
      
      	* vala/parser.y: fix unary expressions
      	* vala/valacodegenerator.vala: add visit_block method
      	* vala/valacodevisitor.vala: add visit methods for statements,
      	  expressions, and literals
      	* vala/valaassignment.vala: add accept method
      	* vala/valabinaryexpression.vala: add accept method
      	* vala/valablock.vala: add accept method
      	* vala/valabooleanliteral.vala: add accept method
      	* vala/valacastexpression.vala: add accept method
      	* vala/valacharacterliteral.vala: add accept method
      	* vala/valaconditionalexpression.vala: add accept method
      	* vala/valaconstant.vala: visit code containers after child elements
      	* vala/valadeclarationstatement.vala: add accept method
      	* vala/valaemptystatement.vala: add accept method
      	* vala/valaexpressionstatement.vala: add accept method
      	* vala/valafield.vala: visit code containers after child elements
      	* vala/valaforeachstatement.vala: add accept method
      	* vala/valaformalparameter.vala: add accept method
      	* vala/valaforstatement.vala: add accept method
      	* vala/valaifstatement.vala: add accept method
      	* vala/valaintegerliteral.vala: add accept method
      	* vala/valainvocationexpression.vala: add accept method
      	* vala/valaliteralexpression.vala: add accept method
      	* vala/valamemberaccess.vala: add accept method
      	* vala/valamethod.vala: add accept method
      	* vala/valanullliteral.vala: add accept method
      	* vala/valaobjectcreationexpression.vala: add accept method
      	* vala/valaparenthesizedexpression.vala: add accept method
      	* vala/valapostfixexpression.vala: add accept method
      	* vala/valareturnstatement.vala: add accept method
      	* vala/valasimplename.vala: add accept method
      	* vala/valastringliteral.vala: add accept method
      	* vala/valaunaryexpression.vala: fix constructor, add accept method
      	* vala/valawhilestatement.vala: add accept method
      	* ccode/valaccodefunction.vala: renamed from CCodeMethod
      
      svn path=/trunk/; revision=19
      62f362b0
  17. 07 May, 2006 1 commit
    • Jürg Billeter's avatar
      tokenizer for new vala compiler parser vor new vala compiler · 04ad6ba4
      Jürg Billeter authored
      2006-05-07  Jürg Billeter  <j@bitron.ch>
      
      	* vala/scanner.l: tokenizer for new vala compiler
      	* vala/parser.y: parser vor new vala compiler
      	* vala/valablock.vala
      	* vala/valabooleanliteral.vala
      	* vala/valacharacterliteral.vala
      	* vala/valaclass.vala: add methods
      	* vala/valadeclarationstatement.vala
      	* vala/valaemptystatement.vala
      	* vala/valaexpression.vala
      	* vala/valaexpressionstatement.vala
      	* vala/valaforeachstatement.vala
      	* vala/valaforstatement.vala
      	* vala/valaifstatement.vala
      	* vala/valaintegerliteral.vala
      	* vala/valainvocationexpression.vala
      	* vala/valaliteral.vala
      	* vala/valaliteralexpression.vala
      	* vala/valalocalvariabledeclaration.vala
      	* vala/valamethod.vala
      	* vala/valanamedargument.vala
      	* vala/valanullliteral.vala
      	* vala/valaobjectcreationexpression.vala
      	* vala/valaparenthesizedexpression.vala
      	* vala/valareturnstatement.vala
      	* vala/valasimplename.vala
      	* vala/valastatement.vala
      	* vala/valastringliteral.vala
      	* vala/valatypereference.vala
      	* vala/valaunaryexpression.vala
      	* vala/valavariabledeclarator.vala
      	* vala/valacodevisitor.vala: add visit_method skeleton
      	* vala/valacodegenerator.vala: do.
      	* vala/vala.h: include generated header files
      	* valac/generator.c: support bool and enum properties, support enums
      
      svn path=/trunk/; revision=14
      04ad6ba4
  18. 06 May, 2006 1 commit
    • Jürg Billeter's avatar
      vala/valacodecontext.vala vala/valasourcefile.vala filename, line, and · e4904cce
      Jürg Billeter authored
      2006-05-06  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valacodecontext.vala
      	* vala/valasourcefile.vala
      	* vala/valasourcereference.vala: filename, line, and comment container
      	* vala/valacodenode.vala: abstract code node
      	* vala/valanamespace.vala: namespace node
      	* vala/valaclass.vala: class node
      	* vala/valacodevisitor.vala: abstract syntax tree visitor
      	* vala/valaparser.vala: vala parser
      	* vala/valacodegenerator.vala: code generator skeleton
      	* compiler/valacompiler.vala: compiler driver
      	* bindings/GLib.vala: add bindings for GList and GOptionContext
      	* valac/scanner.l: support multi-line comments, ABSTRACT, INTERFACE,
      	  READONLY
      	* valac/parser.y: replace AT by HASH, support readonly fields
      	* valac/context.h: small fixes
      	* valac/context.c: small fixes
      	* valac/generator.c: fix override methods, basic support for properties
      
      svn path=/trunk/; revision=13
      e4904cce