Flex and Bison vs. Handwritten Scanners and ParsersThe two example pro dịch - Flex and Bison vs. Handwritten Scanners and ParsersThe two example pro Việt làm thế nào để nói

Flex and Bison vs. Handwritten Scan

Flex and Bison vs. Handwritten Scanners and Parsers
The two example programs in this chapter, word count and a calculator, are both simple
enough that we could without too much trouble have written them directly in C. But
there is little reason to do so when developing a program. The pattern-matching technique
that flex uses is quite fast and is usually about the same speed as a handwritten
scanner. For more complex scanners with many patterns, a flex scanner may even be
faster, since handwritten code will usually do many comparisons per character, while
flex always does one. The flex version of a scanner is invariably much shorter than the
equivalent C, which makes it a lot easier to debug. In general, if the rules for breaking
an input stream into tokens can be described by regular expressions, flex is the tool of
choice.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Flex and Bison vs. Handwritten Scanners and ParsersThe two example programs in this chapter, word count and a calculator, are both simpleenough that we could without too much trouble have written them directly in C. Butthere is little reason to do so when developing a program. The pattern-matching techniquethat flex uses is quite fast and is usually about the same speed as a handwrittenscanner. For more complex scanners with many patterns, a flex scanner may even befaster, since handwritten code will usually do many comparisons per character, whileflex always does one. The flex version of a scanner is invariably much shorter than theequivalent C, which makes it a lot easier to debug. In general, if the rules for breakingan input stream into tokens can be described by regular expressions, flex is the tool ofchoice.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Flex và Bison so với viết tay Máy quét và phân tích cú pháp
của hai chương trình ví dụ trong chương này, từ tính và một máy tính, cả hai đều đơn giản
là đủ mà chúng ta có thể không có quá nhiều rắc rối đã được viết trực tiếp trong C. Nhưng
có rất ít lý do để làm như vậy khi phát triển một chương trình. Các kỹ thuật mô hình khớp
mà flex công dụng này là khá nhanh và thường là về tốc độ giống như một tay
máy quét. Để biết thêm máy quét phức tạp với nhiều mô hình, một máy quét flex thậm chí có thể
nhanh hơn, kể từ khi mã viết tay thường sẽ làm nhiều so sánh cho mỗi nhân vật, trong khi
flex luôn luôn làm một. Các phiên bản flex của một máy quét là luôn ngắn hơn nhiều so với
C tương đương, mà làm cho dễ dàng hơn nó rất nhiều để debug. Nói chung, nếu các quy tắc để phá vỡ
một dòng đầu vào vào thẻ có thể được mô tả bởi biểu thức thông thường, flex là công cụ của
sự lựa chọn.
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: