platform/upstream/vala.git
18 years agosave cname in class, save location of statements and expressions add
Jürg Billeter [Tue, 25 Apr 2006 21:17:43 +0000 (21:17 +0000)]
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

svn path=/trunk/; revision=5

18 years agosupport single-line comments, ASSIGN, PLUS, RETURN, LITERAL_INTEGER,
Jürg Billeter [Mon, 24 Apr 2006 14:00:03 +0000 (14:00 +0000)]
support single-line comments, ASSIGN, PLUS, RETURN, LITERAL_INTEGER,

2006-04-24  Jürg Billeter  <j@bitron.ch>

* valac/scanner.l: support single-line comments, ASSIGN, PLUS, RETURN,
  LITERAL_INTEGER, LITERAL_STRING
* valac/parser.y: add basic statements and expressions
* valac/context.h: add ValaStatement, ValaVariableDeclaration,
  ValaVariableDeclarator, and ValaExpression structs
* valac/context.c: remove unreachable line

svn path=/trunk/; revision=4

18 years agoset token location, support OPEN_PARENS, CLOSE_PARENS, SEMICOLON, PUBLIC,
Jürg Billeter [Mon, 24 Apr 2006 06:58:11 +0000 (06:58 +0000)]
set token location, support OPEN_PARENS, CLOSE_PARENS, SEMICOLON, PUBLIC,

2006-04-24  Jürg Billeter  <j@bitron.ch>

* valac/scanner.l: set token location, support OPEN_PARENS,
  CLOSE_PARENS, SEMICOLON, PUBLIC, STATIC
* valac/parser.y: save symbol location, output exact error location,
  support method declarations
* valac/context.h: add ValaLocation, ValaMethod, and ValaFormalParameter
  structs, add location to ValaClass and ValaTypeReference structs
* valac/context.c: output error location, support method declarations
* valac/generator.c: support method declarations
* valac/driver.c: add comment
* tests/test-004.vala: test method declaration

svn path=/trunk/; revision=3

18 years agosupport DOT, COLON, and COMMA save lower and upper case cnames in
Jürg Billeter [Sat, 22 Apr 2006 11:19:34 +0000 (11:19 +0000)]
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

svn path=/trunk/; revision=2

18 years agoInitial import.
Jürg Billeter [Fri, 21 Apr 2006 09:20:38 +0000 (09:20 +0000)]
Initial import.

* Initial import.

svn path=/trunk/; revision=1