port batch parser wrapper (#232)

* Initial commit for GitHub IO pages

* Add initial doxfx content

* Update manifest.json

* Update manifest.json

* Set theme jekyll-theme-cayman

* Set theme jekyll-theme-slate

* Set theme jekyll-theme-minimal

* Set theme jekyll-theme-tactile

* Clear out theme setting

* Remove API docs

* Revert "Adding Milliseconds to DateTime fields (#173)" (#197)

This reverts commit 431dfa4156.

* ported new BatchParser

* added BatchParser tests

* fixing merge conflicts

* fix build issues

* cleaned code and addressed comments from code review

* addressed code review and made BatchParser logic more efficient

* fixed batch parser tests

* changed class name to fix build issues

* fixed merge conflicts

* added path for lab mode baseline tests

* changed env path for lab mode

* added env variable to appveyor

* testing env variable for appveyor

* fixed lab build

* debug appveyor build

* testing changes for appveyor

* changed trace env path

* debugging appveyor build

* changed baseline env path

* debugging

* debugging

* debugging

* switched on trace flag

* debugging

* debugging

* changed build config

* changed baseline files

* checking baseline output

* changed baseline files

* debug baseline tests

* debugging baseline

* debugging

* debugging

* debug

* debugging

* testing baseline format

* debug

* debug

* debug

* debug

* debug

* newline debug

* changed baseline file

* debug

* test

* try new way to read

* added execution engine tests

* change test

* testing file encoding

* moved execution engine tests to integration

* try compare without spaces

* removed no op test

* added env variable for travis

* put batch parser tests to integration too

* put batch parser in integration

* try new baseline string match

* compare baseline test logic changed

* changed baseline logic as well as cleaned tests

* fix build for travis CI

* fix travis CI issues

* fixed highlighting bugs on vscode

* code review changes

* ported new BatchParser

* added BatchParser tests

* Initial commit for GitHub IO pages

* Add initial doxfx content

* Update manifest.json

* Update manifest.json

* Set theme jekyll-theme-cayman

* Set theme jekyll-theme-slate

* Set theme jekyll-theme-minimal

* Set theme jekyll-theme-tactile

* Clear out theme setting

* Remove API docs

* Revert "Adding Milliseconds to DateTime fields (#173)" (#197)

This reverts commit 431dfa4156.

* fixing merge conflicts

* fix build issues

* cleaned code and addressed comments from code review

* addressed code review and made BatchParser logic more efficient

* fixed batch parser tests

* changed class name to fix build issues

* fixed merge conflicts

* added path for lab mode baseline tests

changed env path for lab mode

added env variable to appveyor

testing env variable for appveyor

fixed lab build

debug appveyor build

testing changes for appveyor

changed trace env path

debugging appveyor build

changed baseline env path

debugging

debugging

debugging

switched on trace flag

debugging

debugging

changed build config

changed baseline files

checking baseline output

changed baseline files

debug baseline tests

debugging baseline

debugging

debugging

debug

debugging

testing baseline format

debug

debug

debug

debug

debug

newline debug

changed baseline file

debug

test

try new way to read

added execution engine tests

change test

testing file encoding

moved execution engine tests to integration

try compare without spaces

removed no op test

added env variable for travis

* put batch parser tests to integration too

* put batch parser in integration

try new baseline string match

* compare baseline test logic changed

* changed baseline logic as well as cleaned tests

* fix build for travis CI

* fix travis CI issues

* fixed highlighting bugs on vscode

* code review changes

* fixed filestream writer test

* added localization string

* added localization string

* generated new string files again

* code review changes
This commit is contained in:
Aditya Bist
2017-02-10 16:51:26 -08:00
committed by GitHub
parent 1a5685c387
commit eb4f2f2b91
412 changed files with 82047 additions and 704 deletions

View File

@@ -0,0 +1 @@
/* unterminated block comment *

View File

@@ -0,0 +1 @@
/* unterminated block comment

View File

@@ -0,0 +1,2 @@
print 'hi'
:r cycle2.txt

View File

@@ -0,0 +1,2 @@
:setvar 0var
-- invalid variable name

View File

@@ -0,0 +1,2 @@
:setvar a b c
-- invalid syntax (too many params)

View File

@@ -0,0 +1,2 @@
-- no variable defined (at EOF)
:setvar

View File

@@ -0,0 +1,2 @@
:setvar
-- no variable defined

View File

@@ -0,0 +1 @@
:setvar a "unterminated string

View File

@@ -0,0 +1 @@
Variable reference with no name: $()

View File

@@ -0,0 +1 @@
Variable reference with invalid name: $(7var)

View File

@@ -0,0 +1,2 @@
Unterminated variable reference: $(var
iable)

View File

@@ -0,0 +1 @@
Unterminated variable reference (at EOF): $(var

View File

@@ -0,0 +1,24 @@
GO 2
BEGIN
:r input-2.txt
:r "input-2.txt"
:setvar ABC "My Value"
MIDDLE
#$(ABC)#
:setvar ABC "NNNNNNNNNNNNNNNNN"
END
GO
:setvar ABC
:setvar B "value of B"
:setvar A "Long value with 'fake' variable ref: $(B)"
~$(ABC)~$~$$(A)~
GO
:setvar _var_1-1 VALUE
select [1] from x
GO 2
:on error ignore
:on error exit -- comment
select 1
/ * fake comment */
- - fake comment
:setv

View File

@@ -0,0 +1,70 @@
/* Lexer tests */
:setvar a "df df""
"
ABC
:r
:r input2.txt
:r
:setvar
:setvar
:setvariable asd
GOTO
:on errors
:on error exit
:on error ignore
DEF
go
go
abc--def
select '$$' '$$(s)asd)' werwer$$(Y)ss
:Setvar x y
:Setvar Y "VALUE OF Y"
from x
GO 2
:SETVAR Z "WE"
:include x
This is a comment: /*
:SETVAR w e
"
*/
Select 1
go 3
:on error exit
go
select 2Y==>$(Y)
A==>$(a)<==
:setvar x "y"
:setvar z "z"
select $(x_y)
from DUAL
-- on error commands
:on error exit
:on error ignore
:on error $(variable)
:on error invalid value
-- Line comment
/* Multi line
block comment
-- with nested line comment */
/*** block comment 2 ***/
select '/*', '*/'
-- Unsupported commands
:reset
:ed
:!!
:quit
:exit
:serverlist
:list
:error errorfile.txt
:out stdout
:perftrace perftrace.txt
:connect server\instance
:help
:xml on
:listvar

View File

@@ -0,0 +1,6 @@
/**//***//* *//** */ */
one comment: /*/*/ */*/
not a comment: / */
/* block comment */
/* block
comment */

View File

@@ -0,0 +1,16 @@
print 1
GO--comment1
GO --comment2
GO 1--comment3
:setvar a --
:setvar b c--notcomment
:setvar d e --comment
:setvar f /*notcomment*/
:setvar g h--notcomment --comment
:setvar j k--notcomment--notcomment
:setvar a-- b--
:r input-2.txt --comment
-- next line will error in parser
:r --comment.txt
:on error exit--comment
:on error exit --comment

View File

@@ -0,0 +1,5 @@
-- Line comment
a--b also a comment
-- comment
--comment
-- comment -- comment

View File

@@ -0,0 +1,4 @@
/*
-- not a line comment
*/
- - not a comment

View File

@@ -0,0 +1,2 @@
:setvar a "variable with
new line"

View File

@@ -0,0 +1,2 @@
:setvar a [unterminated_brace
$(b)]

View File

@@ -0,0 +1,6 @@
:setvar a ""
:setvar a
:setvar a """"
/* double-quote followed by new line: */
:setvar a """
"

View File

@@ -0,0 +1,2 @@
print '2'
:r TS-err-cycle1.txt