ignore file-internal dependencies mark string literals as non-null, add
2006-07-14 Jürg Billeter <j@bitron.ch>
* vala/valacodecontext.vala: ignore file-internal dependencies
* vala/valasemanticanalyzer.vala: mark string literals as non-null, add
some implicit casts
* vala/valamemorymanager.vala: only check for leaks with reference
types, manage memory in field initializers
* vala/valacodegenerator.vala: add non-null parameter typechecks for
structs, simplify ref expression if expression is known to be non-null
* vapi/glib-2.0.vala: unichar, string, String, and Path enhancements,
add Base64 and Dir
adapt to changes in InvocationExpression, LocalVariableDeclaration, and
2006-07-10 Jürg Billeter <j@bitron.ch>
* vala/parser.y: adapt to changes in InvocationExpression,
LocalVariableDeclaration, and InitializerList
* vala/valasemanticanalyzer.vala: add some implicit casts, fix assigning
callback to field, adapt to changes in InvocationExpression
* vala/valamemorymanager.vala: adapt to change in InvocationExpression
* vala/valacodegenerator.vala: fix signal handler without parameters,
fix access to value-type struct members, adapt to changes in
LocalVariableDeclaration, InitializerList, and InvocationExprssion
* vala/valaclass.vala: don't let private static fields influence
has_private_fields, correct marshaller type name
* vala/valaifstatement.vala, vala/valainitializerlist.vala,
vala/valainstancecast.vala, vala/valaintegerliteral.vala,
vala/valainvocationexpression.vala, vala/valaliteralexpression.vala,
vala/valalocalvariabledeclaration.vala: add interface documentation,
use implicit namespace specification
* compiler/valacompiler.vala: fix --vapidir handling
* vapi/glib-2.0.vala: add MainLoop, MainContext, IdleSource, Source, and
Thread
support interfaces support lambda expressions with statement body add
2006-07-07 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala, vala/valaclassregisterfunction.vala:
support interfaces
* vala/parser.y, vala/valasemanticanalyzer.vala,
vala/valalambdaexpression.vala: support lambda expressions with
statement body
* vala/valaclassregisterfunction.vala, vala/valaemptystatement.vala,
vala/valainterface.vala, vala/valainterfaceregisterfunction.vala,
vala/valatyperegisterfunction.vala: add interface documentation, use
implicit namespace specification
* tests/test-015.vala: test lambda expressions with statement body
* tests/test-017.vala: test interfaces
* tests/Makefile.am: update
merge SimpleName into MemberAccess adapt to change in Class support
2006-07-06 Jürg Billeter <j@bitron.ch>
* vala/parser.y, vala/valacodevisitor.vala, vala/valasymbolbuilder.vala,
vala/valasemanticanalyzer.vala, vala/valamemorymanager.vala,
vala/valacodegenerator.vala, vala/valatypereference.vala, vala/vala.h,
vala/Makefile.am: merge SimpleName into MemberAccess
* vala/valasymbolresolver.vala, vala/valainterfacewriter.vala: adapt to
change in Class
* vala/valasemanticanalyzer.vala: support non-static lambda expressions
and lambda expressions without return values
* vala/valacodegenerator.vala: support conditional expressions, support
lambda expressions as signal handlers, support read-only and
write-only properties
* vala/valacodevisitor.vala, vala/valamemorymanager.vala,
vala/valaassignment.vala: visit at beginning and end
* vala/valacallback.vala: add instance property
* vala/valasignal.vala: add get_callback method
* vala/valacastexpression.vala, vala/valacharacterliteral.vala,
vala/valaclass.vala, vala/valamemberaccess.vala, vala/valasignal.vala:
add interface documentation, use implicit namespace specification
Jürg Billeter [Wed, 28 Jun 2006 08:00:19 +0000 (08:00 +0000)]
move source_reference to Vala.Literal, use non-null types, don't mark
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
Jürg Billeter [Thu, 22 Jun 2006 09:48:11 +0000 (09:48 +0000)]
don't mark properties as construct-only, use non-null types use non-null
2006-06-22 Jürg Billeter <j@bitron.ch>
* vala/valaassignment.vala: don't mark properties as construct-only,
use non-null types
* vala/valacodenode.vala: use non-null type
* vala/valaexpression.vala: replace public fields by properties
Jürg Billeter [Thu, 22 Jun 2006 09:24:58 +0000 (09:24 +0000)]
replace specialized interface member declarations by standard member
2006-06-22 Jürg Billeter <j@bitron.ch>
* vala/parser.y: replace specialized interface member declarations by
standard member declarations to allow non-abstract methods in
interfaces
* vala/valacodegenerator.vala: cast instance in property setter
invocations
Jürg Billeter [Thu, 22 Jun 2006 08:48:18 +0000 (08:48 +0000)]
support LAMBDA and CALLBACK support callbacks and lambda expressions add
2006-06-22 Jürg Billeter <j@bitron.ch>
* vala/scanner.l: support LAMBDA and CALLBACK
* vala/parser.y: support callbacks and lambda expressions
* vala/valacodevisitor.vala: add visit methods for callbacks and lambda
expressions
* vala/valasymbolbuilder.vala: use non-null parameter types, support
callbacks
* vala/valasemanticanalyzer.vala: partially support interface methods,
support callback invocations
* vala/valamemorymanager.vala: support callback invocations
* vala/valacodegenerator.vala: partially support interface methods
* vala/valacallback.vala: initial implementation
* vala/valacodenode.vala: replace public fields by properties
* vala/valaexpression.vala: add expected_type field
* vala/valainvocationexpression.vala: also visit at beginning
* vala/valalambdaexpression.vala
* vala/valanamespace.vala: support callbacks
* vala/vala.h: update
* vala/Makefile.am: update
Jürg Billeter [Sun, 18 Jun 2006 12:01:46 +0000 (12:01 +0000)]
support TYPEOF support typeof expressions, out ref parameters, and enum
2006-06-18 Jürg Billeter <j@bitron.ch>
* vala/scanner.l: support TYPEOF
* vala/parser.y: support typeof expressions, out ref parameters, and
enum attributes
* vala/valacodevisitor.vala: add visit method for typeof expressions
* vala/valaattributeprocessor.vala: use non-null parameter types,
support enums and properties
* vala/valasemanticanalyzer.vala: support floating references
* vala/valamemorymanager.vala: ignore signal connections
* vala/valacodegenerator.vala: reset temp variable id at beginning of
each file, fix out parameters, support properties without accessor
methods, support floating references, add typeof expression, support
static signal handlers
* vala/valaclass.vala: use default arguments
* vala/valaenum.vala: support cname, cprefix, and cheader_filename
attributes
* vala/valaenumvalue.vala: use Enum.get_cprefix ()
* vala/valamethod.vala: support FloatingReference attribute
* vala/valanamespace.vala: use default arguments
* vala/valaproperty.vala: support NoAccessorMethod attribute
* vala/valastruct.vala: support type_id
* vala/valatype.vala: add abstract get_type_id method
* vala/valatypeofexpression.vala
* vala/valatypereference.vala: add floating_reference property, correct
to_string method signature
* vala/vala.h: update
* vala/Makefile.am: update
* vapi/glib-2.0.vala: add GInitiallyUnowned
* vapi/gtk+-2.0.vala: start of a GTK+ binding
* vapi/pango.vala: start of a Pango binding
Jürg Billeter [Sat, 17 Jun 2006 15:36:46 +0000 (15:36 +0000)]
don't leak comment texts, support generic types with weak arguments plug
2006-06-17 Jürg Billeter <j@bitron.ch>
* vala/scanner.l: don't leak comment texts, support generic types with
weak arguments
* vala/parser.y: plug most memory leaks
* vala/valacodecontext.vala: work around memory management issues
* vala/valasourcefile.vala: break reference cycles
* vala/valasourcefilecycle.vala: break reference cycles
* vala/valasymbolbuilder.vala: store `this` and `value` parameters in
appropriate member node
* vala/valasymbolresolver.vala: break reference cycle
* vala/valasemanticanalyzer.vala: break reference cycle, promote local
variables with ownership transferring initializer, store foreach
variable declarator in statement object, assignments to properties
don't take value ownership, make null type checks behave well on
either side of a comparison
* vala/valamemorymanager.vala: add support for named arguments,
properties, and ellipsis parameter
* vala/valacodegenerator.vala: add dispose function, register properties
with static strings, don't leak strings when setting properties,
support freeing string arrays, support freeing lists with allocated
items, free local variables before return statements, free old value
on assignments
* vala/valainterfacewriter.vala: output more type reference information
* vala/valaforeachstatement.vala: reference variable_declarator
* vala/valaforstatement.vala: correct generic type arguments
* vala/valamethod.vala: break reference cycle
* vala/valaproperty.vala: reference this_parameter, add
get_canoncial_cconstant method
* vala/valapropertyaccessor.vala: reference value_parameter
* vala/valasimplename.vala: remove unneeded type_argument_list
parameter from constructor
* vala/valasourcereference.vala: let to_string transfer ownership
* vala/valastruct.vala: correct generic type argument
* vala/valasymbol.vala: improve memory management
* vala/valatype.vala: break reference cycles, let get_lower_case_cname
transfer ownership
* vala/valatypereference.vala: break reference cycle, use
type_argument_list
* vala/vala.h: add valaflags.h
* ccode/valaccodefunction.vala: work around missing list deep copy
* ccode/valaccodewriter.vala: don't manually free objects
* compiler/valacompiler.vala: enable memory management by default,
valac doesn't work anymore without memory management
* vapi/glib-2.0.vala: add memory management information
Jürg Billeter [Thu, 15 Jun 2006 21:29:22 +0000 (21:29 +0000)]
add local variables to block analyze local variable initializers free
2006-06-15 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: add local variables to block
* vala/valamemorymanager.vala: analyze local variable initializers
* vala/valacodegenerator.vala: free local variables at end of block,
only free non-null variables, use some strong references due to memory
manager deficiencies
* vala/valablock.vala: use non-null parameter types, add local variable
declarators
* vala/valaenum.vala: let get_upper_case_cname transfer ownership
* vala/valastruct.vala: add free_function attribute
* ccode/valaccodewriter.vala: set freed values to null
* vapi/glib-2.0.vala: add free functions
Jürg Billeter [Wed, 14 Jun 2006 20:55:58 +0000 (20:55 +0000)]
set is_lvalue_ref in property declarations use non-null parameter types
2006-06-14 Jürg Billeter <j@bitron.ch>
* vala/parser.y: set is_lvalue_ref in property declarations
* vala/valacodecontext.vala: use non-null parameter types
* vala/valasymbolresolver.vala: fix lookup in namespaces of using
directives, reset is_lvalue_ref where appropriate
* vala/valasemanticanalyzer.vala: use non-null parameter types,
correctly set is_ref and is_lvalue_ref in variable declarators
* vala/valamemorymanager.vala: support methods which transfer ownership
of arguments and or return value, analyze assignments
* vala/valacodegenerator.vala: add missing reference increment calls,
small memory management improvements
* vala/valaclass.vala: use non-null parameter types
* vala/valaexpression.vala: add ref_missing
* vala/valastruct.vala: support ref_function attribute, use non-null
parameter types
* vala/valatype.vala: let get_upper_case_cname return ref string
* vala/valatypereference.vala: add copy method
* ccode/valaccodeconditionalexpression.vala
* ccode/valaccodefunctioncall.vala: use non-null parameter types
* ccode/Makefile.am: update
* compiler/valacompiler.vala: process attributes before resolving
symbols to have reference_type information available in resolver
* vapi/glib-2.0.vala: add ref_function attributes to string and List,
use ref parameters in List and HashTable until the compiler can handle
it correctly
Jürg Billeter [Wed, 14 Jun 2006 09:43:33 +0000 (09:43 +0000)]
set is_lvalue_ref for variables and fields variables and fields never
2006-06-14 Jürg Billeter <j@bitron.ch>
* vala/parser.y: set is_lvalue_ref for variables and fields
* vala/valasemanticanalyzer.vala: variables and fields never transfer
ownership as rvalue
* vala/valamemorymanager.vala: use non-null parameter types, analyze
return statements
* vala/valacodegenerator.vala: use non-null parameter types, support
memory management for temporary variables in variable initializers,
initialize all uninitialized references to null
* vala/valareturnstatement.vala: visit end of full expression
* vala/valatypereference.vala: add is_lvalue_ref property
* vala/valavariabledeclarator.vala: visit end of full expression
Jürg Billeter [Fri, 26 May 2006 09:56:54 +0000 (09:56 +0000)]
fix member access to namespaces adapt to CCodeWriter changes don't touch
2006-05-26 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: fix member access to namespaces
* vala/valacodegenerator.vala: adapt to CCodeWriter changes
* ccode/valaccodewriter.vala: don't touch file if nothing has changed,
required to get incremental builds working
* vapi/glib-2.0.vala: extend file functions
* ccode/Makefile.am,vala/Makefile.am,compiler/Makefile.am: support
incremental builds
Jürg Billeter [Thu, 25 May 2006 16:24:59 +0000 (16:24 +0000)]
support ELLIPSIS, use g_strdup instead of strdup support variable argument
2006-05-25 Jürg Billeter <j@bitron.ch>
* vala/scanner.l: support ELLIPSIS, use g_strdup instead of strdup
* vala/parser.y: support variable argument lists, type access modifiers
* vala/valareport.vala: class to handle error reporting
* vala/valasymbolbuilder.vala: switch to new error reporting scheme
* vala/valasymbolresolver.vala: switch to new error reporting scheme
* vala/valasemanticanalyzer.vala: process Constant and EnumValue symbol
dependencies, check method argument types, find types of unary and
binary expressions, remove dummy field, switch to new error reporting
scheme
* vala/valacodegenerator.vala: support calling functions with variable
argument lists, support break and continue statements, remove dummy fields,
switch to new error reporting scheme
* vala/valainterfacewriter.vala: visitor to write public vala api in one
file
* vala/valasourcefile.vala: support field and property symbol
dependencies, remove dummy field
* vala/valaclass.vala: add is_abstract field
* vala/valaenumvalue.vala: remove dummy field
* vala/valaformalparameter.vala: add ellipsis property
* vala/valamemberaccessibility.vala: add INTERNAL
* vala/valamethod.vala: make parameters public, remove dummy field
* vala/valaproperty.vala: remove dummy field
* vala/valasymbol.vala: add name field and get_full_name method
* vala/valatype.vala: add access field
* vala/valatypereference.vala: switch to new error reporting scheme
* ccode/valaccodeblock.vala: improve formatting
* ccode/valaccodeifstatement.vala: improve formatting
* ccode/valaccodewriter.vala: improve formatting
* compiler/valacompiler.vala: add error handling, support multiple vapi
directories, add --library option to generate public vala api
* vapi/glib-2.0.vala: moved from bindings, add static GLib.stdout field,
correctly mark functions with variable argument lists, add File.test
method
* configure.ac,Makefile.am,ccode/Makefile.am,vala/Makefile.am,
vapi/Makefile.am,compiler/Makefile.am: add build system
* remove valac subdirectory: Bootstrap compiler is now obsolete.
Jürg Billeter [Wed, 24 May 2006 17:47:34 +0000 (17:47 +0000)]
Compiler is now self-hosting.
2006-05-24 Jürg Billeter <j@bitron.ch>
Compiler is now self-hosting.
* vala/parser.y: support type checks, field attributes, and virtual and
override method modifiers
* vala/valacodevisitor.vala: support type checks
* vala/valasymbolbuilder.vala: correct generated property accessors
* vala/valaattributeprocessor.vala: process field attributes
* vala/valasemanticanalyzer.vala: support virtual methods and type
checks
* vala/valacodegenerator.vala: support properties, private fields,
static fields, virtual methods, field initializers, while statements,
foreach statements, instance last methods, postfix expressions, type
checks
* vala/valaclass.vala: correct source reference, add get_properties
method
* vala/valafield.vala: visit initializer, support cname attribute
* vala/valamethod.vala: support ReturnsModifiedPointer and InstanceLast
attributes, add is_virtual, is_override, and base_method fields, add
get_real_cname method
* vala/valaproperty.vala: add get_upper_case_cname method
* vala/valastruct.vala: add has_private_fields attribute, add
get_methods method
* vala/valatypecheck.vala
* vala/vala.h: update
* ccode/valaccodebreakstatement.vala
* ccode/valaccodecasestatement.vala
* ccode/valaccodecontinuestatement.vala
* ccode/valaccodedeclaration.vala: renamed from
CCodeDeclarationStatement, support function declarators
* ccode/valaccodedeclarator.vala: abstract base class for variable and
function declarators
* ccode/valaccodefunctiondeclarator.vala:
* ccode/valaccodestruct.vala: support function declarations by adding
add_declaration method
* ccode/valaccodeswitchstatement.vala
* ccode/valaccodeunaryexpression.vala: add postfix increment and
decrement operators
* ccode/valaccodevariabledeclarator.vala: inherit from CCodeDeclarator
* ccode/valaccodewhilestatement.vala
Jürg Billeter [Mon, 22 May 2006 20:04:08 +0000 (20:04 +0000)]
support abstract methods and static fields support parameter symbol
2006-05-22 Jürg Billeter <j@bitron.ch>
* vala/parser.y: support abstract methods and static fields
* vala/valasourcefile.vala: support parameter symbol dependencies
* vala/valasymbolbuilder.vala: insert default body for get accessors
* vala/valasemanticanalyzer.vala: add property type dependency
* vala/valacodegenerator.vala: add constants, private static fields,
main function, property accessors, this, casting for member access
* vala/valablock.vala: add add_statement method
* vala/valafield.vala: add instance field
* vala/valamethod.vala: add is_abstract field
* valac/generator.c: mark generated properties as writable
Jürg Billeter [Mon, 22 May 2006 14:25:32 +0000 (14:25 +0000)]
add class instance private struct, type register function, class init
2006-05-22 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.c: add class instance private struct, type
register function, class init function, instance init function;
support access to private members
* ccode/valaccodedeclarationstatement.vala: support static modifier
Jürg Billeter [Fri, 19 May 2006 14:03:34 +0000 (14:03 +0000)]
include header file in corresponding source file, generate class macros
2006-05-19 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: include header file in corresponding
source file, generate class macros and typedefs
* ccode/valaccodeincludedirective.vala
* ccode/valaccodemacroreplacement.vala: c macro definition
* ccode/valaccodetypedefinition.vala: c typedef
* bindings/glib-2.0.vala: correct comment
Jürg Billeter [Thu, 18 May 2006 20:47:29 +0000 (20:47 +0000)]
add get_source_files method add pkg flag use GLib.Object as default base
2006-05-18 Jürg Billeter <j@bitron.ch>
* vala/valacodecontext.vala: add get_source_files method
* vala/valasourcefile.vala: add pkg flag
* vala/valasymbolresolver.vala: use GLib.Object as default base class
* vala/valacodegenerator.vala: ignore package bindings, fix names of
class structs
* bindings/glib-2.0.vala: renamed from GLib.vala, add g_build_filename
* compiler/valacompiler.vala: add pkg and pkgdir options
Jürg Billeter [Thu, 18 May 2006 18:12:23 +0000 (18:12 +0000)]
add method parameters, public instance field access, invocation arguments
2006-05-18 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: add method parameters, public instance
field access, invocation arguments
* vala/valamethod.vala: add get_parameters method
* ccode/valaccodeformalparameter.vala
* ccode/valaccodefunction.vala: use CCodeFormalParameter
* ccode/valaccodememberaccess.vala
* valac/scanner.l: support ASSIGN_BITWISE_OR, BITWISE_OR
* valac/parser.y: support bitwise or
* valac/context.h: support bitwise or
* valac/generator.c: support bitwise or
Jürg Billeter [Thu, 18 May 2006 13:57:34 +0000 (13:57 +0000)]
support member and access modifiers, static methods process method
2006-05-18 Jürg Billeter <j@bitron.ch>
* vala/parser.y: support member and access modifiers, static methods
* vala/valaattributeprocessor.vala: process method attributes
* vala/valaclass.vala: don't set parent_type member of children
* vala/valaconstant.vala: remove unnecessary parent_type member
* vala/valafield.vala: remove unnecessary parent_type member
* vala/valamethod.vala: support cname attribute
* vala/valanamespace.vala: add methods
* vala/valaproperty.vala: remove unnecessary parent_type member
* vala/valastruct.vala: don't set parent_type member of children
Jürg Billeter [Thu, 18 May 2006 12:42:42 +0000 (12:42 +0000)]
support namespace attributes process namespace and class attributes use
2006-05-18 Jürg Billeter <j@bitron.ch>
* vala/parser.y: support namespace attributes
* vala/valaattributeprocessor.vala: process namespace and class
attributes
* vala/valacodegenerator.vala: use correct symbol names
* vala/valamethod.vala: add cname
* vala/valanamespace.vala: add cprefix, support cprefix attribute
* vala/valastruct.vala: prefix cname with namespace cprefix
* bindings/GLib.vala: add tolower to unichar
* valac/parser.y: rename namespace attribute cname to lower_case_cprefix
Jürg Billeter [Sun, 14 May 2006 20:31:49 +0000 (20:31 +0000)]
support OPEN_CAST_PARENS, IS, WHILE support structs, enums, and fields,
2006-05-14 Jürg Billeter <j@bitron.ch>
* vala/scanner.l: support OPEN_CAST_PARENS, IS, WHILE
* vala/parser.y: support structs, enums, and fields, cast, postfix,
while, ref types, and generic type parameters; fix comments
* vala/valacodecontext.vala: add root symbol
* vala/valasourcefile.vala: add using directives, c filenames
* vala/valacodevisitor.vala: add begin and end visits for some container
types, add struct, enum, field, type parameter, namespace reference,
and type reference visits
* vala/valaparser.vala: adapt to visitor changes
* vala/valasymbolbiulder.vala: visitor to fill symbol table
* vala/valasymbolresolver.vala: visitor to resolve symbol references
* vala/valacodegenerator.vala: add beginning of code generation
* vala/valacodenode.vala: add symbol reference
* vala/valacastexpression.vala
* vala/valaclass.vala: derive from struct
* vala/valaenum.vala
* vala/valaexpression.vala: add static_type, field_reference, and
method_reference fields
* vala/valafield.vala
* vala/valamemberaccess.vala
* vala/valanamespace.vala: add structs, enums, and fields
* vala/valanamespacereference.vala
* vala/valapostfixexpression.vala
* vala/valasourcereference.vala: adapt to comment changes
* vala/valastringliteral.vala: add eval method
* vala/valastruct.vala
* vala/valasymbol.vala
* vala/valatype.vala
* vala/valatypeparameter.vala:
* vala/valatypereference.vala: add type, type_parameter, is_ref, and
is_out fields, add get_cname method
* vala/valavariabledeclarator.vala: add name and initializer fields
* vala/valawhilestatement.vala:
* vala/vala.h: update
* compiler/valacompiler.vala: run SymbolBuilder and SymbolResolver
* ccode/valaccodewriter.vala
* ccode/valaccodecomment.vala
* ccode/valaccodefragment.vala
* ccode/valaccodenode.vala
* ccode/valaccodestruct.vala
* bindings/GLib.vala: add/extend ustring, Path, Object, File, HashTable
* valac/scanner.l: support OPEN_CAST_PARENS, OP_AND, OP_OR, IS, WHILE
* valac/parser.y: support cast, while, include_filename ccode attribute,
AND and OR expressions, IS type checks, unary minus
* valac/context.h: add while statements, cast and IS expressions, and
AND and OR operators
* valac/context.c: support cast, IS, while; fix if
* valac/generator.c: support cast, IS, pointer arithmetic, namespace
methods, imported include files
* valac/driver.c: add symbol alias
Jürg Billeter [Wed, 3 May 2006 08:03:01 +0000 (08:03 +0000)]
support OP_NEG, CONSTRUCT, FOREACH, IN add foreach, construct properties;
2006-05-03 Jürg Billeter <j@bitron.ch>
* valac/scanner.l: support OP_NEG, CONSTRUCT, FOREACH, IN
* valac/parser.y: add foreach, construct properties; merge modifiers to
resolve parser conflicts
* valac/context.h: merge modifiers
* valac/context.c: support namespace fields, resolve types in
assignments, invocations, and if, for, and foreach statements
* valac/generator.c: support negation operator, inherited fields in
object variables, foreach statements for arrays and GList, fix
circular dependencies
Jürg Billeter [Mon, 1 May 2006 08:07:14 +0000 (08:07 +0000)]
support ENUM, FLAGS, STRUCT add structs, generic types, enums, flags,
2006-05-01 Jürg Billeter <j@bitron.ch>
* valac/scanner.l: support ENUM, FLAGS, STRUCT
* valac/parser.y: add structs, generic types, enums, flags, attributes,
ref and out parameters
* valac/context.h: add ValaFlags, ValaFlagsValue, and ValaAnnotation
structs
* valac/context.c: support bool, uint, pointer, generic types
* valac/generator.h: save pointer to current struct
* valac/generator.c: support structs, ReturnsModifiedPointer, include
files
support AT, CONST, VALA_FALSE, VALA_NULL, OUT, REF, THIS, VALA_TRUE,
2006-04-30 Jürg Billeter <j@bitron.ch>
* valac/scanner.l: support AT, CONST, VALA_FALSE, VALA_NULL, OUT, REF,
THIS, VALA_TRUE, USING, VAR, LITERAL_CHARACTER
* valac/parser.y: add character, boolean, and null literals, using
directive, @ type qualifier, constants, ref and out variables,
array element access, this access, struct and array initializer,
var type
* valac/context.h: add ValaEnum, ValaConstant, and ValaEnumValue structs
* valac/context.c: support constants, struct members, enums, var type,
using directives
* valac/generator.h: save pointer to current class
* valac/generator.c: support constants, boolean and null literals,
array element access, using directives, this access, enums, private
static fields, ref and out variables, struct and array initializer,
boolean, character, and null literal, var type
support OVERRIDE, VIRTUAL add virtual methods support virtual methods,
2006-04-26 Jürg Billeter <j@bitron.ch>
* valac/scanner.l: support OVERRIDE, VIRTUAL
* valac/parser.y: add virtual methods
* valac/context.h: support virtual methods, improve init and class_init
* valac/context.c: set symbol in ValaMethod struct
* valac/generator.c: support virtual methods
* tests/test-007.vala: test virtual method declaration and invocation
support OPEN_BRACKET, CLOSE_BRACKET, OP_INC, OP_DEC, OP_EQ, OP_NE, OP_LE,
2006-04-26 Jürg Billeter <j@bitron.ch>
* valac/scanner.l: support OPEN_BRACKET, CLOSE_BRACKET, OP_INC, OP_DEC,
OP_EQ, OP_NE, OP_LE, OP_GE, OP_LT, OP_GT, MINUS, STAR, DIV, ELSE, FOR,
IF
* valac/parser.y: add array type references, equality expressions,
relational expressions, multiplicative expressions, postfix
operations, object creation, if conditionals, for loops
* valac/context.h: add ValaNamedArgument struct, support if and for
statements
* valac/context.c: resolve types in object creation expressions of
variable initializers
* valac/generator.c: support array type references, init and class_init
methods, more operations, object creation, for loops, if conditionals,
call g_type_init in main
* tests/test-006.vala: test instance method invocation, object creation,
for loop, if conditional, multiplicative expression
save cname in class, save location of statements and expressions add
2006-04-25 Jürg Billeter <j@bitron.ch>
* valac/parser.y: save cname in class, save location of statements and
expressions
* valac/context.h: add ValaStruct struct
* valac/context.c: support symbols from methods and structs, add int
and string fundamental types, resolve types in local variable
declarations
* valac/generator.h: save pointer to current method block
* valac/generator.c: add special handling for main method, basic support
for method invocations, literals, member access, simple names,
additive expressions, return statments, blocks
* tests/test-005.vala: test static method invocation, literal integer,
simple name, additive expression, return statement, block, main method
support DOT, COLON, and COMMA save lower and upper case cnames in
2006-04-22 Jürg Billeter <j@bitron.ch>
* valac/scanner.l: support DOT, COLON, and COMMA
* valac/parser.y: save lower and upper case cnames in namespace and
class objects, support base classes
* valac/context.h: add ValaSymbol and ValaTypeReference structs, add
cnames to ValaNamespace and ValaClass structs
* valac/context.c: add symbol handling, type resolving, set cnames in
root namespace
* valac/generator.c: remove cname generation, support base classes
* valac/driver.c: add symbols and resolve types
* tests/test-003.vala: test base class