1. 17 Jul, 2009 10 commits
    • Austin Clements's avatar
      Cleanup func literals. "func (" -> "func(" · b751be4c
      Austin Clements authored
      R=rsc
      APPROVED=rsc
      DELTA=41  (0 added, 0 deleted, 41 changed)
      OCL=31773
      CL=31773
      b751be4c
    • Austin Clements's avatar
      Implement all unary and binary arithmetic operators. · 96e84439
      Austin Clements authored
      R=rsc
      APPROVED=rsc
      DELTA=689  (497 added, 169 deleted, 23 changed)
      OCL=31755
      CL=31772
      96e84439
    • Russ Cox's avatar
      another step toward eliminating forward declarations. · e52e9ca8
      Russ Cox authored
      introduce NodeList* type in compiler to replace OLIST.
      this clarifies where lists can and cannot occur.
      list append and concatenation are now cheap.
      the _r rules are gone from yacc.
      rev and unrev are gone.
      no more lists of lists.
      
      the representation of assignments is a bit clunkier.
      split into OAS (1=1) and OAS2 (2 or more on one side).
      
      delete dead chanrecv3 code.
      
      delay construction of func types.
      
      R=ken
      OCL=31745
      CL=31762
      e52e9ca8
    • Rob Pike's avatar
      fix up prints in flag.go · 9b475bd2
      Rob Pike authored
      R=rsc
      DELTA=11  (0 added, 0 deleted, 11 changed)
      OCL=31760
      CL=31760
      9b475bd2
    • Rob Pike's avatar
      clean up the code, flow errors out to decoder. · be2cf952
      Rob Pike authored
      R=rsc
      DELTA=99  (32 added, 22 deleted, 45 changed)
      OCL=31759
      CL=31759
      be2cf952
    • Rob Pike's avatar
      use FieldByName where possible. · 17371571
      Rob Pike authored
      R=rsc
      DELTA=20  (0 added, 12 deleted, 8 changed)
      OCL=31758
      CL=31758
      17371571
    • Robert Griesemer's avatar
      - renamed SimpleVarDecl -> ShortVarDecl, in sync with terminology used in prose · e1b8cb8c
      Robert Griesemer authored
      - added a few TODOs
      
      R=r
      DELTA=4  (2 added, 0 deleted, 2 changed)
      OCL=31751
      CL=31756
      e1b8cb8c
    • Rob Pike's avatar
      add FieldByName to the interface of reflect.StructType · a93c5c85
      Rob Pike authored
      R=rsc
      DELTA=34  (33 added, 0 deleted, 1 changed)
      OCL=31752
      CL=31754
      a93c5c85
    • Rob Pike's avatar
      - allow wire type and receive type to differ. · 1399badb
      Rob Pike authored
      - still TODO: ignoring struct fields.
      
      R=rsc
      DELTA=309  (240 added, 2 deleted, 67 changed)
      OCL=31750
      CL=31750
      1399badb
    • Robert Griesemer's avatar
      ast: · f3ffd93a
      Robert Griesemer authored
      - renamed Program -> SourceFile
      - added Package node representing the AST for an entire package
      - added filter function to create a source file mimicking the
        interface of an entire package
      
      parser:
      - parser entry to parse entire packages
      - unified naming of parser entry points
      - factored out entry points into new file (interface.go)
      
      gofmt:
      - extended to accept single .go files, and package paths:
        gofmt file.go	     	    // formatting of a single file
        gofmt -x file.go	    // interface of a single file
        gofmt -x ./MyPackage	    // interface of a local package
        gofmt -x math		    // interface of a $GOROOT relative package
      
      Various adjustments in dependent files, documentation.
      
      R=rsc
      DELTA=634  (369 added, 153 deleted, 112 changed)
      OCL=31743
      CL=31748
      f3ffd93a
  2. 16 Jul, 2009 7 commits
    • Rob Pike's avatar
      fix some bad testing prints · b75df2f6
      Rob Pike authored
      R=rsc
      DELTA=5  (0 added, 0 deleted, 5 changed)
      OCL=31740
      CL=31742
      b75df2f6
    • Rob Pike's avatar
      clean up the decode loop and fix a couple of bad prints · 04ae91cf
      Rob Pike authored
      R=rsc
      DELTA=15  (8 added, 2 deleted, 5 changed)
      OCL=31738
      CL=31738
      04ae91cf
    • Austin Clements's avatar
      Fix handling of non-waitable zombie threads. Now they are not · 19022830
      Austin Clements authored
      considered running, so WaitStop doesn't lock up and
      breakpoints get installed and uninstalled.  We also don't try
      to detach from them, since that will fail.
      
      R=rsc
      APPROVED=rsc
      DELTA=35  (26 added, 2 deleted, 7 changed)
      OCL=31683
      CL=31731
      19022830
    • David Symonds's avatar
      exvar: new Timer var type. · 13960ae8
      David Symonds authored
      R=rsc
      APPROVED=r
      DELTA=146  (142 added, 0 deleted, 4 changed)
      OCL=31654
      CL=31716
      13960ae8
    • Rob Pike's avatar
      add rpc to the build · a9be3f46
      Rob Pike authored
      R=rsc
      DELTA=3  (3 added, 0 deleted, 0 changed)
      OCL=31693
      CL=31714
      a9be3f46
    • Rob Pike's avatar
      /usr/local/bin might not exist so use /usr/bin in the chdir test. · 7d94cfdf
      Rob Pike authored
      R=rsc
      DELTA=1  (0 added, 0 deleted, 1 changed)
      OCL=31708
      CL=31713
      7d94cfdf
    • Austin Clements's avatar
      Make Value always represent an l-value and never a generic · 816e3da2
      Austin Clements authored
      container for values.
      
      Instead of having one evaluator function that returns a
      generic Value, there is now an evaluator function for each
      generalized type that simply returns a native type.
      
      The compiler is more type-safe now because there are almost no
      type conversions at evaluation time and it's impossible to
      invoke a nil evaluator function during evaluation.  This also
      makes ideals and pointers really clean.
      
      As an added bonus, expression evaluation should be faster
      because it doesn't require heap allocation for every
      intermediate value, type switches, or lots of conversions to
      and from Value.  It also involves fewer function calls.
      
      R=rsc
      APPROVED=rsc
      DELTA=431  (280 added, 115 deleted, 36 changed)
      OCL=31705
      CL=31709
      816e3da2
  3. 15 Jul, 2009 14 commits
  4. 14 Jul, 2009 9 commits