SEPL 2.0, Language support internationalization

Source: Internet
Author: User
Tags throw exception

SEPL 2.0, Language support internationalization

SEPL 2.0
Recently using SEPL programming, in addition to compiler errors, there is also some problems with the syntax.
In order to attract C # programmers to not let them go back, decided to introduce English keywords. This makes it very easy for C # programs to be ported to SEPL.
and international users can also be programmed in English, in line with computer language habits, do not necessarily have to Chinese.
For Chinese grammar, it is enforced rather than forbidden in English. If the code does not need to be audited, do not care whether it is completely Chinese.
This will not only be able to complete the culture, but also to retain English programming. Ultimately. This is to prepare for internationalization, otherwise it will lose a large market.

The biggest difference is the assignment: = equals with =, = = is also preserved. That is to say =,== is the same meaning.

Avoid the c # = = confusion, without professional training is absolutely difficult to distinguish between = = =, do not understand what && is.
However, in order to transplant, reservations, while adding synonyms Chinese keywords.

SEPL no longer cancels the repeat operator in C/c++/c/java, such as + = will be preserved and can be replaced with Chinese words.
Keywords Chinese and English correspondence, SEPL Chinese keyword, and C # english keyword is the same.

For these reserved join operators, you can restrict usage in the compiler and integrated development tools, not in the syntax definitions.
It can also be implemented through code auditing.

Chinese keywords for English keywords

Main function < = = Main
__ parameter List < = __arglist

__ Get Directions < = __makeref
__ Guideline Types < = __reftype
__ Guideline Value < = __refvalue

Abstract <
Convert to < = AS
Add Event < + add
Class < = base based
Boolean < = bool
Interrupts < = break
Unsigned bytes < = Byte
Match < = case

Catch Exception < = catch
Characters < = Char
Check Overflow < = checked
Category < = Class
Constants < = Const
Continue < = Continue
Real < = Decimal
Default < = Default
Entrust < = Delegate
Executive < = do
Double-precision floating point < = Double
otherwise < = Else
enum int < = enum
Event < = Events
Forced explicit Conversion < = explicit
External < and extern
False < = False
Final <-finally
No recovery relocation < = fixed
Floating point < = float
Loops < =
Traverse < = foreach
Jump to < = Goto
Accessor readout < = = Get
If < = if
Implicit conversion < = implicit
at < = in
integers < = int
Interface < = interface
Internal < = Internal
is < =
Locking < = Lock
Long Integers < = long
Namespaces < = namespace
New < + + NEW
Null < = NULL
Objects < = Object
Operator Overloading < = operator
Assignment < = out
Overridden < = Override
Variable Parameters < = params
Private < + private
Protected < = Protected
Public <
Read-Only < = ReadOnly
Value Reference < = ref
Remove Events < = Remove
return < = return
Signed Bytes < = SByte
Sealed < = Sealed
Accessor Write < + = Set
Short integers < =
Take byte length < = sizeof
stack allocation Memory < = stackalloc
static < = Statics
Strings < = string
Structure < = struct
Select < = switch
Self < = this
Throw Exception < = Throw
True < = True
Try < = try
Pick Type < = typeof
unsigned integers < = UINT
unsigned long integers < = ULONG
Cancel overflow Check < = unchecked
Unsafe pointer Operation < = unsafe
unsigned short integers < = ushort
Citation < = using
Virtual <
No type < = void
Concurrent modification of < = volatile
When < = while
Part of < = partial
Type constraint < = where

Async < = Async
Wait for completion <-await

Add the Chinese keyword to the operator

Start < = {
End < =}

Assignment < =:
Plus < = +
Minus < =-
Multiply < = *
except < =/
Residual < =%

equals < = =, = =
Not equal to < = =

Less than < = < less than equals <=> < =

Greater than <=> >
Greater than or equal to < = >=

and < = &&
or < | |
Not < =!

Bit with < = &
Bit or < |
Bit XOR < = ^
Pick Up < = ~
Shift Left < < <
Shift Right <=> >>

Plus 1 < ==> + +
Plus < ==> + =
Minus 1 < ++>-
Minus < ==>-=
Move left < ==> >>=
Move Right < ==> < <=

equals <==> = =
Bit and Upper < ==> &=
Bit or upper < ==> |=

Take up < ==> *=
Remove < ==>/=
Take surplus to < ==>%=
Xor < ==> ^=

Compiling instructions

Comment Area < = region
End Comment Area < = Endregion
If < = if
End If < = EndIf
otherwise if < = Elif
otherwise < = Else
Definitions < = define
Cancel Definition < = undef
Errors < = Error
Warning < = Warning
Compiling instructions < = pragma
Line number < = lines

SEPL 2.0, Language support internationalization

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.