/lenasys/0.1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/0.1

« back to all changes in this revision

Viewing changes to Code Tokenizer and Parser/Parser_Test.js

  • Committer: Gustav Hartvigsson
  • Date: 2013-04-03 15:20:28 UTC
  • mfrom: (9.2.3 lenasys)
  • Revision ID: gustav.hartvigsson@gmail.com-20130403152028-2pxwtfhr0c8rduy4
Merging the changes made by implementation group 2 from 20130403 into trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * Creates a new token object using the constructor
18
18
 */
19
19
 
20
 
function maketoken(kind, val, from, to, rowno) {
 
20
function makeToken(kind, val, from, to, rowno) {
21
21
        newtoken = new token(kind, val, from, to, rowno);
22
22
        tokens.push(newtoken);
23
23
}
131
131
                        } else {
132
132
                            error('Bad Number: ', str, row);
133
133
                        }
134
 
                        } else if (c == '\'' || c == '"') {                                                                                                                                                             // String .. handles c style breaking codes
 
134
                                // String .. handles c style breaking codes
 
135
                        } else if (c == '\'' || c == '"') {                                                                                                                                                             
135
136
                            str = '';
136
137
                            q = c;
137
138
                            i++;
240
241
                        }
241
242
                        }
242
243
                }
243
 
                function newbutton()
 
244
                function newButton()
244
245
                {
245
246
                        var funclist;
246
247
                        var oplist;