Reprinted from: Cardiac Note (http://493420337.iteye.com/blog/593981)--------------------------------------------------------------------------------------------------------------- --------------------------------------------------Chomsky divides the method into four types, namely, type 0, 1, 2 and type 3. The concept of these types of grammar must be mastered and is a very important test center. For these
Java grammar (1) -- Grammar mark and java grammar mark
========================================================== ========================================================== ============ Description: syntax tag is used to express a syntax structure Terminal symbols are shown in fixed width font in the productions of the
Expanded C0 grammar compiler Development Notes (1) symbol table, c0 Grammar
Introduction
This is a compilation task.
1. Expand C0 Grammar
Grammar includes constant description and definition, variable description and definition,
constructordeclaratorthrows opt constructorbody description: A very long right-hand side may is continued on A second line by substantiallyindenting this second line============================================================= ====================================================== extension Five (component multi-select syntax tag): Zerotothree:one of0 1 2 3 Description: equivalent to zerotothree:0 123When the words "one of" follow the colon in a
one:public void Run () {Synchronized (a) {Hold object lock A, wait for object lock bSynchronized (b) {code block;}}}Code executed by thread two:public void Run () {Synchronized (b) {Hold object lock B, wait for object lock aSynchronized (a) {code block;}}}Experience:In future development, remember not to use the nested structure of the synchronous statement block!!!2.6 Common methods in the object classvoid Wait ()-Used to get the current thread into a wait state until another thread calls the
development process has written a re-change mode, and so on. But maybe I didn't read it well, after reading it, I was able to sort out how the team worked together and what everyone in the team was responsible for. Do you want to write a demand design together? Or is it part of the people responsible? There are no concrete examples to help understand it. A company develops a big project, how to get a software team to work in a methodical way, how do they divide, and how to integrate all the par
and M, lm = {st | S? l, T? m}
Kleene closure of language l, l * =
Positive closure of language l, l + =
3rd records indicate a set of 0 to infinite l elements, and 4th records indicate a set of 1 to infinite l elements. For exampleL1 = {A, B ,... Y, z} M1 = {1, 2... 8, 9} (l1um1) = {A, B ,... Y, Z, 1, 2... 8, 9}(L1um1) * = {A, B ,... Y, Z,
Design requirements: For a ll (1) Grammar of any input, construct its predictive analysis table and parse the specified input string to see if it is a sentence of that grammar.Idea: Firstly, the set first (X) construction algorithm and the set follow (A) construction algorithm are constructed, and then the Prediction Analysis table is built according to the set of primary and follow, and the analysis proces
For the basic concepts of compilation principle, refer to the http://www.cnblogs.com/bitzhuwei/archive/2012/10/22/SmileWei_Compiler.html
For the basic data structure for the following code, see http://www.cnblogs.com/bitzhuwei/archive/2012/03/09/compiler_basic_data_structure.html1. Eliminate direct left recursion
Set P-> p α 1 | p α 2 |... | p α n | β1 | β2 |... | β m
Each α is not ε (ε is null, and nothing means anything, similar to null), and each β
language style, Python's main grammatical features are:
1, variable, stringIn Python, all variables are objects, the array is actually a linked list, and can be linked to the corresponding list operation.1.1 For ordinary data types, the definition/assignment method is the same, not to be introduced here, Python string aspects are somewhat special, here to introduce.Python has the same meaning for strings with [']], and also for special characters us
Markdown Concise Grammar
Basic symbols
*,-, + 3 symbols effect are the same, these 3 symbols are called markdown symbols
A blank line represents a different paragraph
' is to represent the inline Code, tab is used to mark the code snippet, respectively, corresponding to the HTML code,pre tag
Line break
Single paragraph (
Two consecutive spaces will become a
3 consecutive symbols, then a blank line, repre
the object (the memory block of the class, to help find the object belongs to the class), so all the objects are shared a method, so the class is only loaded once. member variables each object has its own portion of memory, but the method uses a share of the memory3. Procedure for invoking a method:[Person1 Walk];Perform:Send a walk message to the object pointed to by the pointer Person1, go to call that object's Walk method, then the object will follow the ISA pointer to find the corresponding
for the C # compiler, with a specific meaning of the name, such as the program in the using, class, Static, void is a keyword. If you mistakenly use the keyword as an identifier, the compiler will produce an error, and we'll know immediately that something went wrong, so don't worry.The provisions of identifiers1, only by the capital letters, lowercase letters, numbers and underline _ composition;2, must start with a letter or an underscore;3, C language is case-sensitive, username and username
function.To do this, you need to use the Global keyword before (inside the function) variable. ($x = 5; .... function ... () {global $x;} )PHP also stores all global variables in an array named $GLOBALS [index]. The subscript contains the variable name. This array is also accessible within the function and can be used to update global variables directly.($x = 5; .... function ... (){$GLOBALS [' y ']= $GLOBALS [' x ']+ $GLOBALS [' Y '];})PHP Static KeywordsWhen you declare a variable by using st
First, comments‘‘‘Multi-line comments‘‘‘#单行注释"' #example1.1 Test program time: 4/17/2017I1=input ("Please enter user name:")I2=input ("Please enter password")Print (I1)Print (I2)Print ("ainiyou")‘‘‘Second, the variable1) (the rules are the same as the rules in C)2) cannot make python internal keywordsIII. Basic data types1) NumberAge=242) stringName= "Yuanguoliang"Name= 'Yuanguoliang'Name= "" "Yuanguoliang" ""3) Boolean value (True,false)Iv. Process Control and indentation1) If the indentation u
1. Classification of nouns (1) proper nouns① specific names of individual persons, land, objects, groups, institutions, etc.② the first letter capitalization of the notional of the proper noun speciesBeijing Tom The People ' s Republic of China① a noun, such as a phrase containing a common noun, must use a definiteThe great the Great Wall Wall② surname in plural form, the surname familyThe Greens Green fami
possible to export to the string itself. This requires understanding the variable definition of PHP.
Five, PHP variables
Like ASP, PHP variables can be used without first defining them. For the type of the variable, it is automatically generated when the value is assigned.
Various variables in PHP are preceded by the variable name with "$" to differentiate.
$a = "123";
echo A;
echo $a;
?>
Enter as "A123"
Six, single and double quotes in PHP
$a = "123";
echo "$a";
echo ' $a ';
?>
The outpu
of the work.4 MathML and SVGHTML5 's HTML syntax agrees to use the MathML (mathematical Markup Language) and SVG (scalable vector) elements in the document. Like what. A very easy HTML page includes a circle drawn by an SVG element:DOCTYPE HTML>title>SVG in text/htmltitle>P>A Green Circle:svg> CircleR= " the"CX= " the"Cy= " the"Fill= "Green"/> svg>P>Many other complex combinations of tags are also supported, for example, using SVG's foreignobject element you can nest MathML, HTML, or nesting it
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.