Merge lp:~zorba-coders/zorba/null-type-fix into lp:~zorba-coders/zorba/new-jsoniq

Proposed by Ghislain Fourny
Status: Merged
Merged at revision: 11352
Proposed branch: lp:~zorba-coders/zorba/null-type-fix
Merge into: lp:~zorba-coders/zorba/new-jsoniq
Diff against target: 53 lines (+12/-0)
6 files modified
src/compiler/parser/parser.y (+6/-0)
src/context/root_static_context.cpp (+1/-0)
test/rbkt/ExpQueryResults/zorba/jsoniq/js_null_type.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/jsoniq/null_type.xml.res (+1/-0)
test/rbkt/Queries/zorba/jsoniq/js_null_type.xq (+1/-0)
test/rbkt/Queries/zorba/jsoniq/null_type.xq (+2/-0)
To merge this branch: bzr merge lp:~zorba-coders/zorba/null-type-fix
Reviewer Review Type Date Requested Status
Ghislain Fourny Approve
Nicolae Brinza Approve
Review via email: mp+163902@code.launchpad.net

Commit message

Fixing null type parsing.

Description of the change

Fixing null type parsing.

To post a comment you must log in.
Revision history for this message
Nicolae Brinza (nbrinza) :
review: Approve
Revision history for this message
Ghislain Fourny (gislenius) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/compiler/parser/parser.y'
--- src/compiler/parser/parser.y 2013-05-13 15:02:42 +0000
+++ src/compiler/parser/parser.y 2013-05-15 12:38:15 +0000
@@ -5451,6 +5451,12 @@
5451 {5451 {
5452 $$ = new GeneralizedAtomicType( LOC(@$), static_cast<QName*>($1) );5452 $$ = new GeneralizedAtomicType( LOC(@$), static_cast<QName*>($1) );
5453 }5453 }
5454#ifdef JSONIQ_PARSER
5455| NULL_TOKEN
5456 {
5457 $$ = new GeneralizedAtomicType( LOC(@$), new QName(LOC(@$), "null") );
5458 }
5459#endif
5454;5460;
54555461
54565462
54575463
=== modified file 'src/context/root_static_context.cpp'
--- src/context/root_static_context.cpp 2013-04-08 19:44:58 +0000
+++ src/context/root_static_context.cpp 2013-05-15 12:38:15 +0000
@@ -140,6 +140,7 @@
140 "fn", static_context::W3C_FN_NS,140 "fn", static_context::W3C_FN_NS,
141#ifdef ZORBA_WITH_JSON141#ifdef ZORBA_WITH_JSON
142 "jn", static_context::JSONIQ_FN_NS,142 "jn", static_context::JSONIQ_FN_NS,
143 "js", static_context::JSONIQ_DM_NS,
143#endif144#endif
144 "local", XQUERY_LOCAL_FN_NS,145 "local", XQUERY_LOCAL_FN_NS,
145 "xml", XML_NS,146 "xml", XML_NS,
146147
=== added file 'test/rbkt/ExpQueryResults/zorba/jsoniq/js_null_type.xml.res'
--- test/rbkt/ExpQueryResults/zorba/jsoniq/js_null_type.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/jsoniq/js_null_type.xml.res 2013-05-15 12:38:15 +0000
@@ -0,0 +1,1 @@
1true
02
=== added file 'test/rbkt/ExpQueryResults/zorba/jsoniq/null_type.xml.res'
--- test/rbkt/ExpQueryResults/zorba/jsoniq/null_type.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/jsoniq/null_type.xml.res 2013-05-15 12:38:15 +0000
@@ -0,0 +1,1 @@
1true
02
=== added file 'test/rbkt/Queries/zorba/jsoniq/js_null_type.xq'
--- test/rbkt/Queries/zorba/jsoniq/js_null_type.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/jsoniq/js_null_type.xq 2013-05-15 12:38:15 +0000
@@ -0,0 +1,1 @@
1jn:null() instance of js:null
02
=== added file 'test/rbkt/Queries/zorba/jsoniq/null_type.xq'
--- test/rbkt/Queries/zorba/jsoniq/null_type.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/jsoniq/null_type.xq 2013-05-15 12:38:15 +0000
@@ -0,0 +1,2 @@
1jsoniq version "1.0";
2null instance of null

Subscribers

People subscribed via source and target branches

to all changes: