Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
ce20a967
Kaydet (Commit)
ce20a967
authored
Mar 05, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add '[' and ']' to conventions' char flags where appropriate
Change-Id: Ic82ccfcba08ce276eac08609de215ba8edf8e813
üst
e73c0f53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
11 deletions
+36
-11
compiler.cxx
sc/source/core/tool/compiler.cxx
+36
-11
No files found.
sc/source/core/tool/compiler.cxx
Dosyayı görüntüle @
ce20a967
...
@@ -352,6 +352,41 @@ ScCompiler::Convention::Convention( FormulaGrammar::AddressConvention eConv )
...
@@ -352,6 +352,41 @@ ScCompiler::Convention::Convention( FormulaGrammar::AddressConvention eConv )
/* [ */
t
[
91
]
=
SC_COMPILER_C_ODF_LBRACKET
;
/* [ */
t
[
91
]
=
SC_COMPILER_C_ODF_LBRACKET
;
/* \ */
// FREE
/* \ */
// FREE
/* ] */
t
[
93
]
=
SC_COMPILER_C_ODF_RBRACKET
;
/* ] */
t
[
93
]
=
SC_COMPILER_C_ODF_RBRACKET
;
}
else
if
(
FormulaGrammar
::
CONV_OOO
==
meConv
)
{
/* [ */
t
[
91
]
=
SC_COMPILER_C_CHAR
;
/* \ */
// FREE
/* ] */
t
[
93
]
=
SC_COMPILER_C_CHAR
;
}
else
if
(
FormulaGrammar
::
CONV_XL_OOX
==
meConv
)
{
#if 1
/* TODO: currently SC_COMPILER_C_CHAR doesn't work as long as the
* table references aren't implemented. */
/* [ */
t
[
91
]
=
SC_COMPILER_C_CHAR_IDENT
;
/* \ */
// FREE
/* ] */
t
[
93
]
=
SC_COMPILER_C_IDENT
;
#else
/* TODO: check if SC_COMPILER_C_CHAR_IDENT and SC_COMPILER_C_IDENT
* were only added to be able to import table structured
* reference of a whole table. If so, then remove here. */
/* [ */
t
[
91
]
=
SC_COMPILER_C_CHAR
|
SC_COMPILER_C_CHAR_IDENT
;
/* \ */
// FREE
/* ] */
t
[
93
]
=
SC_COMPILER_C_CHAR
|
SC_COMPILER_C_IDENT
;
#endif
}
else
if
(
FormulaGrammar
::
CONV_XL_A1
==
meConv
)
{
/* [ */
t
[
91
]
=
SC_COMPILER_C_CHAR
;
/* \ */
// FREE
/* ] */
t
[
93
]
=
SC_COMPILER_C_CHAR
;
}
else
if
(
FormulaGrammar
::
CONV_XL_R1C1
==
meConv
)
{
/* [ */
t
[
91
]
=
SC_COMPILER_C_IDENT
;
/* \ */
// FREE
/* ] */
t
[
93
]
=
SC_COMPILER_C_IDENT
;
}
}
else
else
{
{
...
@@ -359,6 +394,7 @@ ScCompiler::Convention::Convention( FormulaGrammar::AddressConvention eConv )
...
@@ -359,6 +394,7 @@ ScCompiler::Convention::Convention( FormulaGrammar::AddressConvention eConv )
/* \ */
// FREE
/* \ */
// FREE
/* ] */
// FREE
/* ] */
// FREE
}
}
/* ^ */
t
[
94
]
=
SC_COMPILER_C_CHAR
|
SC_COMPILER_C_WORD_SEP
|
SC_COMPILER_C_VALUE_SEP
;
/* ^ */
t
[
94
]
=
SC_COMPILER_C_CHAR
|
SC_COMPILER_C_WORD_SEP
|
SC_COMPILER_C_VALUE_SEP
;
/* _ */
t
[
95
]
=
SC_COMPILER_C_CHAR_WORD
|
SC_COMPILER_C_WORD
|
SC_COMPILER_C_CHAR_IDENT
|
SC_COMPILER_C_IDENT
|
SC_COMPILER_C_CHAR_NAME
|
SC_COMPILER_C_NAME
;
/* _ */
t
[
95
]
=
SC_COMPILER_C_CHAR_WORD
|
SC_COMPILER_C_WORD
|
SC_COMPILER_C_CHAR_IDENT
|
SC_COMPILER_C_IDENT
|
SC_COMPILER_C_CHAR_NAME
|
SC_COMPILER_C_NAME
;
/* ` */
// FREE
/* ` */
// FREE
...
@@ -408,17 +444,6 @@ ScCompiler::Convention::Convention( FormulaGrammar::AddressConvention eConv )
...
@@ -408,17 +444,6 @@ ScCompiler::Convention::Convention( FormulaGrammar::AddressConvention eConv )
/* | */
t
[
124
]
|=
SC_COMPILER_C_WORD
;
/* | */
t
[
124
]
|=
SC_COMPILER_C_WORD
;
/* } */
t
[
125
]
|=
SC_COMPILER_C_WORD
;
/* } */
t
[
125
]
|=
SC_COMPILER_C_WORD
;
/* ~ */
t
[
126
]
|=
SC_COMPILER_C_WORD
;
/* ~ */
t
[
126
]
|=
SC_COMPILER_C_WORD
;
if
(
FormulaGrammar
::
CONV_XL_R1C1
==
meConv
)
{
/* [ */
t
[
91
]
|=
SC_COMPILER_C_IDENT
;
/* ] */
t
[
93
]
|=
SC_COMPILER_C_IDENT
;
}
if
(
FormulaGrammar
::
CONV_XL_OOX
==
meConv
)
{
/* [ */
t
[
91
]
|=
SC_COMPILER_C_CHAR_IDENT
;
/* ] */
t
[
93
]
|=
SC_COMPILER_C_IDENT
;
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment