Directory testsuite/openmodelica/omcc/

Total Files:
17
Deleted Files:
8
Lines of Code:
5241

[root]/testsuite/openmodelica/omcc

Lines of Code

testsuite/openmodelica/omcc/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 320 (100.0%) 60234 (100.0%) 188.2
arun3688 96 (30.0%) 24717 (41.0%) 257.4
adrpo 17 (5.3%) 15380 (25.5%) 904.7
sjoelund.se 165 (51.6%) 13454 (22.3%) 81.5
hudson 37 (11.6%) 6544 (10.9%) 176.8
alash325 4 (1.3%) 138 (0.2%) 34.5
hkiel 1 (0.3%) 1 (0.0%) 1.0

Most Recent Commits

arun3688 2014-05-27 16:27 Rev.: 20859

Removed the local copy Absyn.mo, and also fixed the grammar to the most recent Absyn.mo and linked the SCRIPT.mos to load Absyn.mo from Compiler and not locally

21 lines of code changed in 4 files:

  • testsuite/openmodelica/omcc: Absyn.mo (del), OMCC.mos (+1 -1), SCRIPT.mos (+6 -435), parserModelica.y (+14 -7)
arun3688 2014-05-12 11:36 Rev.: 20550

grammar fix to restore class name in AST in extend clause

8 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: parserModelica.y (+8 -11)
arun3688 2014-05-08 15:19 Rev.: 20496

fix to parse local declaration in MetaModelica

1 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: parserModelica.y (+1 -1)
arun3688 2014-05-05 11:55 Rev.: 20359

fixes to the class_extends and optimica rules

15 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: parserModelica.y (+15 -14)
arun3688 2014-05-02 14:57 Rev.: 20350

new grammar rules added to the parser and some fixes

42 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: parserModelica.y (+42 -30)
arun3688 2014-05-02 14:53 Rev.: 20349

new tokens added initialequation and initialalgorithm to be identifed as single tokens and not as INITIAL EQUATION

5 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: lexerModelica.l (+5 -1)
hudson 2014-04-16 11:06 Rev.: 20164

[Janitor mode] Fix whitespace

240 lines of code changed in 7 files:

  • testsuite/openmodelica/omcc: Absyn.mo (+152 -152), Lexer.mo (+1 -1), LexerGenerator.mo (+60 -60), Main.mo (+6 -6), OMCC.mo (+10 -10), ParserGenerator.mo (+2 -2), Types.mo (+9 -9)
sjoelund.se 2014-03-10 17:55 Rev.: 19535

Bump OMCC tests

1 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: Makefile (+1 -1)
sjoelund.se 2014-03-10 11:33 Rev.: 19523

Remove some useless variables

6 lines of code changed in 2 files:

  • testsuite/openmodelica/omcc: ParseCode.tmo (+2 -3), Parser.mo (+4 -5)
sjoelund.se 2014-03-10 11:20 Rev.: 19521

Remove the AstStack from the environment

58 lines of code changed in 4 files:

  • testsuite/openmodelica/omcc: Absyn.mo (-1), Parser.mo (+46 -45), lexerModelica.l (-1), parserModelica.y (+12 -1)
sjoelund.se 2014-03-09 18:20 Rev.: 19518

Do inlining of arrayGet by default (halves the cost).
- OMCC: Use unsafe arrayGet in the parser (eliminates the cost of arrayGet almost completely)

21 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: Parser.mo (+21 -19)
sjoelund.se 2014-03-09 16:01 Rev.: 19517

Reduced the need to call the token merging so often (it mostly did elt::stack=stack; stack=elt::stack;, and we statically knew which calls did this)

10 lines of code changed in 2 files:

  • testsuite/openmodelica/omcc: ParseCode.tmo (+2 -6), ParserGenerator.mo (+8 -2)
sjoelund.se 2014-03-08 23:17 Rev.: 19516

Removed debug flag from environment

97 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: Parser.mo (+97 -101)
sjoelund.se 2014-03-08 18:51 Rev.: 19508

Remove useless token to string

1 lines of code changed in 2 files:

  • testsuite/openmodelica/omcc: ParseCode.tmo (-1), Parser.mo (+1 -7)
sjoelund.se 2014-03-08 18:23 Rev.: 19507

Create the file info for AST only on demand

49 lines of code changed in 4 files:

  • testsuite/openmodelica/omcc: ParseCode.tmo (+5 -6), Parser.mo (+3 -3), ParserGenerator.mo (+2 -1), parserModelica.y (+39 -39)
sjoelund.se 2014-03-08 18:00 Rev.: 19506

Use match, not matchcontinue

2 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: Parser.mo (+2 -2)
sjoelund.se 2014-03-08 17:55 Rev.: 19505

- Added new annotation: `annotation(__OpenModelica_FileInfo=("parserModelica.y",718));` on something with file information (e.g. equation,algorithm,class) now changes the file and line
- Changed the OMCC grammar syntax. You no longer define the types returned by each rule - everything is an AstItem (a uniontype containing all types).
- The above changes allow us to use only 1 stack for AstItem (previously, we had to allocate memory for all 80+ types and push them for each reduction)
- The grammar was updated (and tested on the given testsuite)
- The grammar was also fixed. Some rules previously used $1 and $2 even though $1 and $3 were to be used. It worked anyway because $2 and $3 were in different stacks...
- Halved the time Machines.mo takes to parse

1493 lines of code changed in 9 files:

  • testsuite/openmodelica/omcc: LexerGenerator.mo (+4 -4), Main.mo (+5 -6), Makefile (+1), OMCC.mo (+2 -1), OMCC.mos (+1 -3), ParseCode.tmo (+35 -62), Parser.mo (+10 -13), ParserGenerator.mo (+85 -215), parserModelica.y (+1350 -726)
sjoelund.se 2014-03-07 13:51 Rev.: 19496

Statically parse the values of yyr2 in some places: knowing the number of tokens to reduce will be handy later on

16 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: ParserGenerator.mo (+16 -9)
sjoelund.se 2014-03-07 11:24 Rev.: 19494

Trim trailing whitespace

492 lines of code changed in 8 files:

  • testsuite/openmodelica/omcc: Absyn.mo (+160 -160), Lexer.mo (+2 -2), LexerGenerator.mo (+103 -103), Main.mo (+8 -8), OMCC.mo (+13 -13), Parser.mo (+185 -185), ParserGenerator.mo (+1 -1), Types.mo (+20 -20)
arun3688 2014-03-06 18:05 Rev.: 19487

grammar fix to handle empty if,elseif and for statements

20 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: parserModelica.y (+20 -14)
sjoelund.se 2014-03-06 13:41 Rev.: 19473

Use newly added MetaModelica.Dangerous.listReverseInPlace to save a little more time in the OMCC lexer

2 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: Lexer.mo (+2 -1)
sjoelund.se 2014-03-06 13:05 Rev.: 19471

OMCC Fixes
- Fix the dummy tokens when trying to merge tokens
- Add the filename to error-messages again
- Moved omcc_test to a collection of Modelica files to parse on github

36 lines of code changed in 4 files:

  • testsuite/openmodelica/omcc: Main.mo (+1 -1), Makefile (+22), Parser.mo (+12 -10), Types.mo (+1 -1)
sjoelund.se 2014-03-06 12:43 Rev.: 19470

Fix yytname parsing

2 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: ParserGenerator.mo (+2 -1)
sjoelund.se 2014-03-06 10:37 Rev.: 19466

- Inline some more MetaModelica functions
- OMCC: Combine the Absyn.INFO lines/columns into the OMCCTypes.TOKEN directly (1 fewer allocation)

32 lines of code changed in 5 files:

  • testsuite/openmodelica/omcc: LexerCode.tmo (+1 -1), LexerGenerator.mo (+1 -1), ParseCode.tmo (+5 -7), Parser.mo (+4 -6), Types.mo (+21 -31)
sjoelund.se 2014-03-05 23:49 Rev.: 19457

Implement the lexer states stack as an array<Integer> instead of list<Integer>

37 lines of code changed in 3 files:

  • testsuite/openmodelica/omcc: Lexer.mo (+34 -35), LexerCode.tmo (+2 -2), LexerGenerator.mo (+1 -1)
sjoelund.se 2014-03-05 21:02 Rev.: 19455

- Add MetaModelica.Dangerous.stringGetNoBoundsChecking
- Change LexerCode.action to return a token with index=-1 instead of NONE()

13 lines of code changed in 4 files:

  • testsuite/openmodelica/omcc: Lexer.mo (+7 -3), LexerCode.tmo (+2 -2), LexerGenerator.mo (+2 -2), Types.mo (+2)
sjoelund.se 2014-03-05 18:16 Rev.: 19448

- Change start state from Integer to list<Integer> as an optimization (!). This variable was always used to re-initialize the current states (a list), by creating a list from the start state (costs 1 allocation). By always keeping it as a list, you do 0 allocations (not even when changing start state: all those assignments are constant values which are optimized).
- Added new MetaModelica function, MetaModelica.Dangerous.arrayGetNoBoundsChecking which is also inlined by macro (saves a surprising amount of run-time performance)

34 lines of code changed in 3 files:

  • testsuite/openmodelica/omcc: Lexer.mo (+30 -28), LexerCode.tmo (+3 -2), LexerGenerator.mo (+1 -1)
sjoelund.se 2014-03-05 15:45 Rev.: 19441

Change buffer to Integer from list<Integer>. Change the way info is generated (track first/last byte line/column in the token instead of only the first and re-read the token contents to figure out the line/column of the other end).

87 lines of code changed in 3 files:

  • testsuite/openmodelica/omcc: Lexer.mo (+45 -35), LexerCode.tmo (+29 -39), LexerGenerator.mo (+13 -13)
sjoelund.se 2014-03-05 14:38 Rev.: 19438

Replace bkBuffer list<Integer> with Integer (we only need to know the number of bytes to backtrack)

18 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: Lexer.mo (+18 -27)
sjoelund.se 2014-03-05 13:43 Rev.: 19436

Refactoring (remove match when not used)

73 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: Lexer.mo (+73 -122)
sjoelund.se 2014-03-05 10:00 Rev.: 19432

Removed the need to convert the read file from a String to list<1-length String> to list<Integer> - we now read each byte as it is with an additional stack for returned characters in the backtracking

41 lines of code changed in 4 files:

  • testsuite/openmodelica/omcc: Lexer.mo (+36 -48), Main.mo (+1 -1), Parser.mo (+2 -2), Types.mo (+2 -2)
sjoelund.se 2014-03-04 20:23 Rev.: 19421

Handle multiple bison versions (YY_NULL|0)

3 lines of code changed in 3 files:

  • testsuite/openmodelica/omcc: Makefile (+1 -1), OMCC.mo (+1 -1), ParserGenerator.mo (+1 -4)
sjoelund.se 2014-03-04 18:12 Rev.: 19419

Remove env from the lexer - pass everything without building a new record all the time

77 lines of code changed in 5 files:

  • testsuite/openmodelica/omcc: Lexer.mo (+35 -29), Main.mo (+1 -1), ParserGenerator.mo (+39 -39), Types.mo (+1 -1), parserModelica.y (+1 -1)
arun3688 2014-03-04 17:48 Rev.: 19418

Code generation fixes for windows and linux

8 lines of code changed in 3 files:

  • testsuite/openmodelica/omcc: LexerGenerator.mo (+6 -8), ParserGenerator.mo (+1 -1), Types.mo (+1 -1)
sjoelund.se 2014-03-04 17:10 Rev.: 19417

OMCC: Remove list<Integer> value from TOKEN

33 lines of code changed in 6 files:

  • testsuite/openmodelica/omcc: Lexer.mo (+2), LexerCode.tmo (+1 -1), LexerGenerator.mo (+1 -1), ParseCode.tmo (+1 -1), Parser.mo (+4 -4), Types.mo (+24 -48)
sjoelund.se 2014-03-04 16:27 Rev.: 19416

Added substring as a MetaModelica builtin (it uses strlen as external "C"; this is incredibly slow compared to MMC_STRLEN)
- Updated OMCC to pass around the entire file contents and token start/end positions (to replace passing around lists of integers that need to be converted)

133 lines of code changed in 9 files:

  • testsuite/openmodelica/omcc: GenerateParser.mos (+1 -1), Lexer.mo (+98 -92), LexerCode.tmo (+2 -1), LexerGenerator.mo (+1 -1), Main.mo (+2), Makefile (+1 -1), ParseCode.tmo (+3 -3), Parser.mo (+3 -3), Types.mo (+22 -37)
sjoelund.se 2014-03-04 09:48 Rev.: 19414

Don't construct the environment over and over again - pass only required variables

58 lines of code changed in 3 files:

  • testsuite/openmodelica/omcc: Lexer.mo (+47 -38), LexerCode.tmo (+10 -18), Makefile (+1 -1)
sjoelund.se 2014-03-03 23:52 Rev.: 19408

Return failure codes

2 lines of code changed in 1 file:

  • testsuite/openmodelica/omcc: Main.mo (+2 -2)
sjoelund.se 2014-03-03 23:35 Rev.: 19407

Avoid slow lookup of names through lists (like in the hand-coded parser)

5 lines of code changed in 2 files:

  • testsuite/openmodelica/omcc: LexerCode.tmo (+4 -4), LexerGenerator.mo (+1 -1)
sjoelund.se 2014-03-03 23:21 Rev.: 19406

Call getInfo on demand, like the old hand-tuned code

2 lines of code changed in 2 files:

  • testsuite/openmodelica/omcc: LexerCode.tmo (+1 -1), LexerGenerator.mo (+1 -1)

(33 more)

Generated by StatSVN 0.7.0